<%= @admin_post.title %>
@@ -37,7 +37,7 @@ <% end %>- <% if current_user.pseuds.count > 1 %> +
<% if bookmarkable.class == ExternalWork && bookmarkable.new_record? %> <%= fields_for 'bookmark[external]', bookmarkable do |ew| %><%= set_format_for_date(bookmark.created_at) %>
-
- <%= ts("Bookmarked by ") %>
+
+
+ <%= ts("Last bookmarked by ") %>
<%= link_to(bookmark.pseud.byline, user_pseud_path(bookmark.pseud.user, bookmark.pseud)) %>
+
<%= set_format_for_date(bookmark.created_at) %>
<% unless bookmark.tag_string.blank? %> --
-
- <%= ts "Bookmarker's Tags:" %> -
-
-
-
+
- <%= link_to(tag.name, link_to_tag_bookmarks(tag), :class => 'tag') %><% unless tag == bookmark.tags.last %><%= "," %><% end %> <% end %>
Tags
+-
<% bookmark.tags.each do |tag| %>
-
<%= ts("Bookmarked by ") %> <%= link_to(bookmark.pseud.byline, user_pseud_path(bookmark.pseud.user, bookmark.pseud)) %>
-<%= set_format_for_date(bookmark.created_at) %>
- <%= get_symbol_for_bookmark(bookmark) %> + +<%= set_format_for_date(bookmark.created_at) %>
-
-
- <%= ts "Bookmarker's Tags:" %> -
-
-
-
+
- <%= link_to(tag.name, link_to_tag_bookmarks(tag), :class => 'tag') %><% unless tag == bookmark.tags.last %><%= "," %><% end %> <% end %>
<%= ts "Bookmarker's Tags:" %>
+-
<% bookmark.tags.each do |tag| %>
-
Notes
<%=raw sanitize_field(bookmark, :notes) %>diff --git a/app/views/bookmarks/_bookmarks.html.erb b/app/views/bookmarks/_bookmarks.html.erb index e5f328ad2ba..5d20c780d4f 100644 --- a/app/views/bookmarks/_bookmarks.html.erb +++ b/app/views/bookmarks/_bookmarks.html.erb @@ -24,7 +24,7 @@ <% elsif params[:show_recent] %> -
-
+
- Submit +
- <%= submit_tag t('.bookmarks.search', :default => 'Search bookmarks'), :name => nil %> + <% end %> diff --git a/app/views/collection_items/_collection_item_form.html.erb b/app/views/collection_items/_collection_item_form.html.erb index 52cc5d17253..791fc7192ed 100644 --- a/app/views/collection_items/_collection_item_form.html.erb +++ b/app/views/collection_items/_collection_item_form.html.erb @@ -2,8 +2,7 @@ <% @collection_item ||= CollectionItem.new %> <% dynamic ||= false %>
- <%= label_tag 'collection_filters_title', "Filter by title or name" %>
-
diff --git a/app/views/collections/_form.html.erb b/app/views/collections/_form.html.erb
index fd99b4fb324..f97fb88cee2 100644
--- a/app/views/collections/_form.html.erb
+++ b/app/views/collections/_form.html.erb
@@ -85,10 +85,10 @@
<% @collection.build_collection_profile unless @collection.collection_profile %>
<%= collection_form.fields_for :collection_profile do |profile_form| %>
- + <%= allowed_html_instructions %>
-- Tip: if this is a subcollection or challenge, you don't need to repeat yourself: fields left blank will copy from your parent collection. +
+ Tip: if this is a subcollection or challenge, you don't need to repeat yourself: fields left blank will copy from your parent collection.
<%= profile_form.label :intro, ts("Introduction") %>:
@@ -135,4 +135,4 @@ <%= submit_fieldset collection_form %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/collections/_header.html.erb b/app/views/collections/_header.html.erb index b3cdbfe8da4..e49213cc29b 100644 --- a/app/views/collections/_header.html.erb +++ b/app/views/collections/_header.html.erb @@ -2,8 +2,7 @@<%= link_to_unless_current(@collection.title, @collection) %>
-<%= image_tag(@collection.icon.url(:standard), :size => "100x100", :alt => "icon for #{@collection.name}", :class => "icon") %>
-<%=raw sanitize_field(@collection, :description) %>
+<%= image_tag(@collection.icon.url(:standard), :size => "100x100", :alt => "", :class => "icon") %>
@@ -33,8 +32,8 @@- <%= link_to ts("Membership"), collection_participants_path(@collection) %>
- <%= link_to ts("Manage Items"), collection_items_path(@collection) %>
<% end %> - - -<%=raw sanitize_field(@collection, :description) %>
+ diff --git a/app/views/collections/index.html.erb b/app/views/collections/index.html.erb index b91f3ee171c..360e21a088e 100644 --- a/app/views/collections/index.html.erb +++ b/app/views/collections/index.html.erb @@ -12,7 +12,7 @@ <% if @collections.empty? %> <%= ts("Sorry, there were no collections found.") %> <% else %> -<%= search_header @collections, @query, "Collection" %>
+<%= search_header @collections, @query, "Collection" %>
<% end %> diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 0f350b213f5..f6221125652 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -7,14 +7,14 @@We're the <%= link_to t('.archive_faq', :default => "Archive of Our Own"), archive_faqs_path %>, but you can call us <%= link_to ts('AO3'), works_path %>
<% if logged_in? %> -<%= link_to ts('Invite a friend'), user_invitations_path(current_user) %>
+<%= link_to ts('Invite a friend'), user_invitations_path(current_user) %>
<% else %> <% if @admin_settings.account_creation_enabled? %> -<%= link_to ts('Log in'), login_path %> or <%= link_to ts("Create an Account"), new_user_path %>
+<%= link_to ts('Log in'), login_path %> or <%= link_to ts("Create an Account"), new_user_path %>
<% elsif @admin_settings.invite_from_queue_enabled? %> -<%= link_to ts('Get a Code'), invite_requests_path %>
+<%= link_to ts('Get a Code'), invite_requests_path %>
<% else %> -<%= link_to ts('Log in'), login_path %>
+<%= link_to ts('Log in'), login_path %>
<% end %> <% end %> diff --git a/app/views/inbox/show.html.erb b/app/views/inbox/show.html.erb index c3d20a0f756..9a5361d0f85 100644 --- a/app/views/inbox/show.html.erb +++ b/app/views/inbox/show.html.erb @@ -8,22 +8,26 @@ <% unless @inbox_comments.blank? %> <%= form_tag user_inbox_path(@user), :method => :put, :id => 'inbox-form' do %>- - - -- <%= "Mark checked as:" %> + +
- - -
+
+ -
@@ -88,9 +92,9 @@ inbox_comment.feedback_comment), :remote => true %>
-
Filter
<%= form_tag(user_inbox_path(@user), :class => 'filters', :method => :get) do %> - <%= field_set_tag do %> +Filter
+ <%= field_set_tag do %>- <%= 'Filter by read' %>
-
diff --git a/app/views/invitations/_invitation.html.erb b/app/views/invitations/_invitation.html.erb
index a9d96d3a48a..7ae39532c53 100644
--- a/app/views/invitations/_invitation.html.erb
+++ b/app/views/invitations/_invitation.html.erb
@@ -1,45 +1,28 @@
-
-
+- - -Sender -<%= creator_link(invitation) %> -- -Invitation token -<%= invitation.token %> -- -Copy link -<% unless invitation.redeemed_at %><%= link_to "copy and use", new_user_path(:invitation_token => invitation.token) %><% end %> -- -Sent to +-
+
- Sender +
- <%= creator_link(invitation) %> +
- Invitation token +
- <%= invitation.token %> +
- Copy link +
- <% unless invitation.redeemed_at %><%= link_to "copy and use", new_user_path(:invitation_token => invitation.token) %><% end %> +
- Sent to <% if invitation.redeemed_at %> -
- <%= invitation.invitee_email %> <% else %> -
-
<%= form_for(invitation) do |f| %>
<%= f.text_field :invitee_email %>
<%= hidden_field_tag :user_id, @user.try(:login) %>
<%= f.submit %>
<% end %> -
<%= invitation.invitee_email %> ++ + <% end %> -- -Redeemed by -<%= invitee_link(invitation) %> -- -Created at -<%= invitation.created_at %> -- -Sent at -<%= invitation.sent_at %> -- -Redeemed at -<%= invitation.redeemed_at %> - - Redeemed by +
- <%= invitee_link(invitation) %> +
- Created at +
- <%= invitation.created_at %> +
- Sent at +
- <%= invitation.sent_at %> +
- Redeemed at +
- <%= invitation.redeemed_at %> +
- <%= render :partial => 'user_sessions/login' %> - <%= ts("Log in") %> - <%= ts("Cancel") %> + <%= ts("Log in") %> + <%= ts("Cancel") %>
<%= @collection.title ? @collection.title : (@collection_parent ? @collection_parent.title : ts("New Collection")) %>
<% else %>- <%= link_to ArchiveConfig.APP_NAME, root_path %> (BETA) + <%= link_to image_tag('logo-stroke.png', :alt => "#{ArchiveConfig.APP_NAME} (BETA)"), root_path %>
<% end %> diff --git a/app/views/layouts/_includes.html.erb b/app/views/layouts/_includes.html.erb index 620503ce86e..83dadcc952d 100644 --- a/app/views/layouts/_includes.html.erb +++ b/app/views/layouts/_includes.html.erb @@ -7,7 +7,7 @@ '07-actions', '17-interactions', '08-roles-states', -'10-types.css', +'10-groups.css', '11-group-meta', '12-group-blurb', '13-group-preface', diff --git a/app/views/layouts/session.html.erb b/app/views/layouts/session.html.erb index 8c70a0dca7e..c99991542a6 100644 --- a/app/views/layouts/session.html.erb +++ b/app/views/layouts/session.html.erb @@ -1,31 +1,31 @@ - - - -- <%= ArchiveConfig.APP_NAME %> - <% unless ArchiveConfig.REVISION.blank? %>(rev. - <%= ArchiveConfig.REVISION %>) - <% end %>>> - <%= controller.controller_name %> - <%= controller.action_name %> - - <%= render :partial => 'layouts/includes' %> - - - -- <%= flash_div :error, :warning, :notice %> -+ + + +<%= link_to ArchiveConfig.APP_NAME , :controller => 'home', :action => 'index' %>
-<%= ts("A project of the") %> <%= "Organization For Transformative Works" %>
-- <%= image_tag(ArchiveConfig.LOGO, :alt => ArchiveConfig.ALT_LOGO) %> -
-- <%= yield %> --+ <%= ArchiveConfig.APP_NAME %> + <% unless ArchiveConfig.REVISION.blank? %>(rev. + <%= ArchiveConfig.REVISION %>) + <% end %>>> + <%= controller.controller_name %> + <%= controller.action_name %> + + <%= render :partial => 'layouts/includes' %> + + + <%= render :partial => 'layouts/header' %> + ++ <%= flash_div :error, :warning, :notice %> + +<%= render :partial => 'layouts/footer' %> diff --git a/app/views/passwords/new.html.erb b/app/views/passwords/new.html.erb index 55f97971641..52ad4ac1460 100644 --- a/app/views/passwords/new.html.erb +++ b/app/views/passwords/new.html.erb @@ -1,5 +1,5 @@ -+ <%= image_tag(ArchiveConfig.LOGO, :alt => ArchiveConfig.ALT_LOGO) %> +
++ <%= yield %> ++<%= ts("Forgot your password?") %>
+<%= ts("Forgotten your password?") %>
<%= ts("If you've forgotten your password, we can send you a temporary one.") %> <%= ts("Please tell us the user name or email address you used when you signed up for your Archive account.") %>
diff --git a/app/views/people/_author_blurb.html.erb b/app/views/people/_author_blurb.html.erb index f2abf1ecfd8..0b4d9394910 100644 --- a/app/views/people/_author_blurb.html.erb +++ b/app/views/people/_author_blurb.html.erb @@ -1,5 +1,5 @@ - -
- +
- +
<%= link_to(author.name, user_pseud_path(author.user, author)) %> <% if (author.name != author.user.login) %> (<%= link_to(author.user_name, user_path(author.user)) %>) @@ -13,6 +13,7 @@
<%=raw standard_icon_display(author.user, author) %>+<%=raw sanitize_field(author, :description) %>
@@ -29,5 +30,4 @@ <% end %> <% end %> -
diff --git a/app/views/people/index.html.erb b/app/views/people/index.html.erb
index 575bb9c8ae2..e29e944afc5 100644
--- a/app/views/people/index.html.erb
+++ b/app/views/people/index.html.erb
@@ -1,27 +1,30 @@
<% if @collection %>
- +
- <%= f.check_box :email_visible %> @@ -40,8 +42,9 @@
- <%= f.check_box :adult %> @@ -74,7 +77,9 @@ (<%= link_to ts('Public skins'), skins_path %>)
- @@ -92,7 +97,9 @@ <%= f.label :hide_public_hit_count, ts("Don't publicly display hits on my works.") %>
- @@ -120,7 +127,9 @@ <%= f.label :admin_emails_off, ts("Turn off admin notification emails") %>
- @@ -144,7 +153,10 @@
- <%= f.label :time_zone, ts("Your time zone: ")%> @@ -172,7 +184,7 @@ <%= link_to_help "work_title_format" %>
-
- ++ <% end %>
- +
<%= link_to(pseud.name, user_pseud_path(pseud.user, pseud)) %> <% if (pseud.name != pseud.user_name || pseud.user.pseuds.size > 1) %> (<%= link_to(pseud.user_name, user_path(pseud.user)) %>) @@ -12,26 +12,26 @@
<%= standard_icon_display(@user, pseud) %>++
<%=raw sanitize_field(pseud, :description) %>
<% end %> <% if current_user == pseud.user %> --
+
- <%= link_to "#{h(ts('Edit'))} #{h pseud.name}".html_safe, [:edit, @user, pseud], :id => "edit_#{pseud.name.downcase.gsub(" ", "_")}" %> <% unless pseud.works.blank? %>
- <%= link_to "#{h(ts('Orphan Works'))} by #{h pseud.name}".html_safe, {:controller => 'orphans', :action => 'new', :pseud_id => pseud.id} %> <% end %> <% if pseud.is_default? %> -
- Default Pseud +
- Default Pseud <% elsif @user.login != pseud.name %>
- <%= link_to "#{h(ts('Delete'))} #{h pseud.name}".html_safe, [@user, pseud], :confirm => ts('Are you sure?'), :id => "delete_#{pseud.name.underscore}", :method => :delete %> <% end %>
User Actions
+
diff --git a/app/views/pseuds/_pseuds_form.html.erb b/app/views/pseuds/_pseuds_form.html.erb
index 4b204206f21..3848cf2530b 100644
--- a/app/views/pseuds/_pseuds_form.html.erb
+++ b/app/views/pseuds/_pseuds_form.html.erb
@@ -37,9 +37,9 @@
<%= f.text_field :icon_alt_text, :class => "observe_textlength" %>
<%= generate_countdown_html("pseud_icon_alt_text", ArchiveConfig.ICON_ALT_MAX) %>
-
-
- - +
- Submit +
- <%= f.submit button_text %> + + <% end %> diff --git a/app/views/readings/_reading.html.erb b/app/views/readings/_reading.html.erb index bcb579a0ac5..dceb0672d9d 100644 --- a/app/views/readings/_reading.html.erb +++ b/app/views/readings/_reading.html.erb @@ -1,4 +1,4 @@ -
-
<% if related_work.work.unrevealed? || related_work.work.anonymous? %>
-
<%= "A work in an unrevealed or anonymous challenge" %> + <%= "A work in an unrevealed or anonymous challenge" %> <% else %><%= link_to related_work.parent.title.html_safe, related_work.parent %> by <%= byline(related_work.parent) %> <%= link_to related_work.work.title.html_safe, related_work.work %> @@ -88,75 +84,54 @@ <% end %> <% unless @remixes_of_user.blank? %> -Works inspired by <%= @user.login %>'s works
+Works inspired by <%= @user.login %>
-- -
+ <% end %> <% unless @remixes_by_user.blank? %> -- - - <% @remixes_of_user.each do |related_work| %> <% if related_work.parent && related_work.work %> -Remix/Inspired Work -Original - <% if current_user == @user %> -Approve/remove link - <% end %> -+ + <% end %> <% end %> - -- <% if related_work.work.unrevealed? %> -
+<%= "A work in an unrevealed challenge" %> + <%= "A work in an unrevealed challenge" %> <% else %> -<%= link_to related_work.work.title.html_safe, related_work.work %> by <%= byline(related_work.work) %> -<%= link_to related_work.parent.title.html_safe, related_work.parent %> + <%= link_to related_work.work.title.html_safe, related_work.work %> by <%= byline(related_work.work) %>- was inspired by <%= link_to related_work.parent.title.html_safe, related_work.parent %> <% if current_user == @user %> <% if related_work.reciprocal? %> -
<%= link_to "Remove", related_work %> + <%= link_to "Remove", related_work %> <% else %> -<%= link_to "Approve", related_work %> + <%= link_to "Approve", related_work %> <% end %> <% end %> <% end %> -Works <%= @user.login %>'s works were inspired by
- -- -
+ <% end %> diff --git a/app/views/series/_series_blurb.html.erb b/app/views/series/_series_blurb.html.erb index 072627a81d3..f6ac3bbbb5d 100644 --- a/app/views/series/_series_blurb.html.erb +++ b/app/views/series/_series_blurb.html.erb @@ -40,8 +40,8 @@ <% end %> - - <% if is_author_of?(series) %> +- - - +Original -Remix/Inspired Work - <% if current_user == @user %> -Remove connection - <% end %> -Works that inspired <%= @user.login %>
+-
<% @remixes_by_user.each do |related_work| %>
<% unless related_work.translation? %>
<% if related_work.parent && related_work.work %>
-
- + <% if related_work.work.unrevealed? || related_work.work.anonymous? %> + <%= ts("A work in an unrevealed or anonymous challenge") %> + <% else %> + <%= link_to related_work.parent.title, related_work.parent %> by <%= byline(related_work.parent) %> + <% end %> + +
-
+ <%= ts("inspired") %>
+ <%= link_to related_work.work.title, related_work.work %>
<% if current_user == @user %>
-
<%= link_to "Remove", {:controller => :related_works, :action => :destroy, :id => related_work.id}, :confirm => ts('Are you sure?'), :method => :delete %> +<%= link_to "Remove", {:controller => :related_works, :action => :destroy, :id => related_work.id}, :confirm => ts('Are you sure?'), :method => :delete %>
<% end %> - <% end %> -
- <% if related_work.work.unrevealed? || related_work.work.anonymous? %> - + <% end %> <% end %> <% end %> -<%= "A work in an unrevealed or anonymous challenge" %> - <% else %> -<%= link_to related_work.parent.title.html_safe, related_work.parent %> by <%= byline(related_work.parent) %> -<%= link_to related_work.work.title.html_safe, related_work.work %> +Author Action
+<% if is_author_of?(series) %><%= link_to t('.links.edit', :default => 'Edit'), edit_series_path(series) %>
<% end %> diff --git a/app/views/skins/_form.html.erb b/app/views/skins/_form.html.erb index f7bd13bd261..2d5be1d2e24 100644 --- a/app/views/skins/_form.html.erb +++ b/app/views/skins/_form.html.erb @@ -1,5 +1,5 @@ -+ Archive Skin
diff --git a/app/views/skins/_skin_top_navigation.html.erb b/app/views/skins/_skin_top_navigation.html.erb index 337985c672d..e797daaec1f 100644 --- a/app/views/skins/_skin_top_navigation.html.erb +++ b/app/views/skins/_skin_top_navigation.html.erb @@ -1,7 +1,14 @@Navigation
-
-
- <%= span_if_current ts('Public Skins'), skins_path %> +
- + <% if params[:work_skins] %> + <%= link_to ts("Site Skins"), url_for(:work_skins => false) %> + <% else %> + <%= link_to ts("Work Skins"), url_for(:work_skins => true) %> + <% end %> + +
- <%= span_if_current ts('Public Skins'), skins_path %> <% if logged_in? %>
- <%= span_if_current ts('My Skins'), user_skins_path(current_user) %> <% unless controller.action_name == "new" %> diff --git a/app/views/skins/_wizard_form.html.erb b/app/views/skins/_wizard_form.html.erb index b58cc244f8a..12ba75dc981 100644 --- a/app/views/skins/_wizard_form.html.erb +++ b/app/views/skins/_wizard_form.html.erb @@ -1,4 +1,4 @@ -
- - <% if params[:work_skins] %> - <%= link_to ts("See Site Skins Instead"), url_for(:work_skins => false) %> - <% else %> - <%= link_to ts("See Work Skins Instead"), url_for(:work_skins => true) %> - <% end %> - -
-
<%= link_to name, {:controller => :tags, :action => :edit, :id => assignments.first} %>
--
- <% assignments.collect(&:wrangler).compact.each do |wrangler| %>
-
- <%= link_to wrangler, tag_wrangler_path(:id => wrangler) %> - <%= link_to '(remove)', tag_wrangler_path(:id => wrangler, :fandom_id => assignments.first.id), :method => :delete %> + <% wranglers = assignments.collect(&:wrangler).compact %> + <% unless wranglers.empty? %> +
- + <%= link_to wrangler, tag_wrangler_path(:id => wrangler) %> + <%= link_to '(remove)', tag_wrangler_path(:id => wrangler, :fandom_id => assignments.first.id), :method => :delete %> + + <% end %> +
-
+ <% wranglers.each do |wrangler| %>
+
<% select_tag_to_add = select_tag("assignments[#{assignments.first.id}][]", options_for_select([''] + @wranglers.collect(&:login))) %> @@ -41,14 +45,15 @@ <%= hidden_field_tag :fandom_string, params[:fandom_string] %> <%= hidden_field_tag :media_id, params[:media_id] %> <%= hidden_field_tag :wrangler_id, params[:wrangler_id] %> +
<%= submit_tag 'Assign' %>
<% end %> -Filters
<%= form_tag tag_wranglers_path, :class => 'filters', :method => :get do %> --
+
- Filter by Media
-
Show only:
diff --git a/app/views/tag_wranglings/_wrangler_dashboard.html.erb b/app/views/tag_wranglings/_wrangler_dashboard.html.erb index ee642155f37..0f1f7dfa15d 100644 --- a/app/views/tag_wranglings/_wrangler_dashboard.html.erb +++ b/app/views/tag_wranglings/_wrangler_dashboard.html.erb @@ -10,7 +10,7 @@- <%= span_if_current('New Tag', new_tag_path) %>
<% if @counts %> - +-
<% if @tag && @uses %>
<% for key in @uses %>
<% if key == 'Works' || key == 'Bookmarks' %>
diff --git a/app/views/tag_wranglings/discuss.html.erb b/app/views/tag_wranglings/discuss.html.erb
index d700436385b..0e15b86de17 100644
--- a/app/views/tag_wranglings/discuss.html.erb
+++ b/app/views/tag_wranglings/discuss.html.erb
@@ -3,10 +3,8 @@
<%= will_paginate(@comments) %>
-
-
- Suggested Fandoms: +
- Suggested Fandoms:
-
<% @suggested_fandoms[0..19].in_groups(2, false) do |fandom_list| %>
-
@@ -93,8 +93,8 @@
<% for tag in tag_list %>
- <%= link_to_edit_tag(tag) %> - - <%= link_to 'remove', {:controller => :tags, :action => :remove_association, :id => @tag, :to_remove => tag.name} %> + + <%= link_to 'X', {:controller => :tags, :action => :remove_association, :id => @tag, :to_remove => tag.name} %> <% end %> @@ -109,7 +109,7 @@ <% if @tag.canonical? %>
- <%= f.label tag_type.underscore + '_string', tag_category_name(tag_type) %> @@ -123,15 +123,15 @@ <% for tag in tag_list %>
- <%= link_to_edit_tag(tag) %> - - <%= link_to 'remove', {:controller => :tags, :action => :remove_association, :id => @tag, :to_remove => tag.name} %> + + <%= link_to 'X', {:controller => :tags, :action => :remove_association, :id => @tag, :to_remove => tag.name} %> <% end %>
- <%= link_to 'wrangle all child tags', {:controller => :tags, :action => :wrangle, :id => @tag} %>
+<%= link_to 'wrangle all child tags', {:controller => :tags, :action => :wrangle, :id => @tag} %>
-
<% @tag.child_types.each do |tag_type| %>
<%= link_to "See all (#{@tag.send(tag_type.underscore.pluralize).count})", {:controller => :tags, :action => :wrangle, :id => @tag, :show => tag_type.underscore.pluralize} %>
+<%= link_to "See all (#{@tag.send(tag_type.underscore.pluralize).count})", {:controller => :tags, :action => :wrangle, :id => @tag, :show => tag_type.underscore.pluralize} %>
<% end %> <% end %>
@@ -140,7 +140,7 @@
<% end %>
<% elsif @tag.is_a?(Media) %>
- - <%= f.radio_button("type", type) %><%= f.label("type_#{type.downcase}", type) %> +
- <%= link_to 'Edit', {:controller => :tags, :action => :edit, :id => @tag} %>
- <%= tag_comment_link(@tag) %>
- Show: +
Show:
- <%= link_to 'all', url_for(:show => params[:show], :status => 'all') %>
- <%= link_to 'canonical', url_for(:show => params[:show], :status => 'canonical') %>
- <%= link_to 'non-canonical', url_for(:show => params[:show], :status => 'noncanonical') %> diff --git a/app/views/user_sessions/_greeting.html.erb b/app/views/user_sessions/_greeting.html.erb index 24bb5172b24..91380f4478b 100644 --- a/app/views/user_sessions/_greeting.html.erb +++ b/app/views/user_sessions/_greeting.html.erb @@ -6,9 +6,9 @@
- <%= link_to ts("Post New"), new_work_path %> | -
- +
- <%= link_to ts("Log out"), logout_path %> diff --git a/app/views/user_sessions/_login.html.erb b/app/views/user_sessions/_login.html.erb index 9f1bc4e88d2..db4e3e00979 100644 --- a/app/views/user_sessions/_login.html.erb +++ b/app/views/user_sessions/_login.html.erb @@ -5,5 +5,5 @@ <%- else -%> <%= render :partial => "user_sessions/passwd_small" %> <% end %> -
- <%= span_if_current ts("Collections (%{coll_number})", :coll_number => @user.owned_collections.count), user_collections_path(@user) %> +
- <%= span_if_current ts("Collections (%{coll_number})", :coll_number => @user.owned_collections.count), user_collections_path(@user) %> <% else %> -
- <%= span_if_current ts("My Collections (%{my_collection_number})", :my_collection_number => @user.owned_collections.count), user_collections_path(@user) %> +
- <%= span_if_current ts("My Collections (%{my_collection_number})", :my_collection_number => @user.owned_collections.count), user_collections_path(@user) %> <% end %> @@ -58,12 +58,11 @@
- <%= span_if_current ts("My Signups (%{my_signup_number})", :my_signup_number =>@user.challenge_signups.count), user_signups_path(@user) %> -
- <%= span_if_current ts("My Assignments (%{my_assignment_number})", :my_assignment_number => (@user.offer_assignments.undefaulted.count + @user.pinch_hit_assignments.undefaulted.count)), user_assignments_path(@user) %> -
- <%= span_if_current ts("My Claims (%{my_claim_number})", :my_claim_number => (@user.request_claims.count)), user_claims_path(@user) %> +
- <%= span_if_current ts("My Signups (%{my_signup_number})", :my_signup_number =>@user.challenge_signups.count), user_signups_path(@user) %> +
- <%= span_if_current ts("My Assignments (%{my_assignment_number})", :my_assignment_number => (@user.offer_assignments.undefaulted.count + @user.pinch_hit_assignments.undefaulted.count)), user_assignments_path(@user) %> +
- <%= span_if_current ts("My Claims (%{my_claim_number})", :my_claim_number => (@user.request_claims.count)), user_claims_path(@user) %>
- <%= print_gifts_link(@user) %> -
- <%= span_if_current ts("My Related Works (%{my_related_works_number})", :my_related_works_number => (@user.related_works.count + @user.parent_work_relationships.count)), user_related_works_path(@user) %> -
- <%= print_gifts_link(@user) %> +
- <%= span_if_current ts("My Related Works (%{my_related_works_number})", :my_related_works_number => (@user.related_works.count + @user.parent_work_relationships.count)), user_related_works_path(@user) %> <% end %>
- <%= ts("Edit") %>: -
- <%= link_to ts("Default pseud and icon"), [:edit, @user, @user.default_pseud] %> -
- <%= link_to ts("User Name"), change_username_user_path(@user) %> +
- <%= link_to ts("Edit default pseud and icon"), [:edit, @user, @user.default_pseud] %> +
- <%= link_to ts("Change User Name"), change_username_user_path(@user) %>
-
<% if @user.crypted_password %>
<%= link_to ts("Password"), change_password_user_path(@user) %>
@@ -23,40 +22,39 @@
+
<%= ts("Change Profile") %>
<%= form_for(@user) do |f| %>-
+ <%= fields_for :profile_attributes, @user.profile do |p| %>
+
- <%= p.label :title, "Title" %> +
- + <%= p.text_field :title, :class => "observe_textlength" %> + <%= live_validation_for_field("profile_attributes_title", :presence => false, :maximum_length => Profile::PROFILE_TITLE_MAX) %> + <%= generate_countdown_html("profile_attributes_title", Profile::PROFILE_TITLE_MAX) %> + - <%= fields_for :profile_attributes, @user.profile do |p| %> -
- <%= p.label :title, "Title" %> -
- - <%= p.text_field :title, :class => "observe_textlength" %> - <%= live_validation_for_field("profile_attributes_title", :presence => false, :maximum_length => Profile::PROFILE_TITLE_MAX) %> - <%= generate_countdown_html("profile_attributes_title", Profile::PROFILE_TITLE_MAX) %> - +
- <%= p.label :location, "Location" %> +
- + <%= p.text_field :location, :class => "observe_textlength" %> + <%= live_validation_for_field("profile_attributes_location", :presence => false, :maximum_length => Profile::LOCATION_MAX) %> + <%= generate_countdown_html("profile_attributes_location", Profile::LOCATION_MAX) %> + -
- <%= p.label :location, "Location" %> -
- - <%= p.text_field :location, :class => "observe_textlength" %> - <%= live_validation_for_field("profile_attributes_location", :presence => false, :maximum_length => Profile::LOCATION_MAX) %> - <%= generate_countdown_html("profile_attributes_location", Profile::LOCATION_MAX) %> - +
- <%= p.label :date_of_birth, "Date of Birth" %> +
- <%= p.date_select :date_of_birth, :start_year => 13.years.ago.year, :end_year => 90.years.ago.year, :include_blank => true %> -
- <%= p.label :date_of_birth, "Date of Birth" %> -
- <%= p.date_select :date_of_birth, :start_year => 13.years.ago.year, :end_year => 90.years.ago.year, :include_blank => true %> +
<%= p.label :about_me, "About Me" %>
+ -
+
<%= allowed_html_instructions %>
+ <%= p.text_area :about_me, :class => "observe_textlength" %> + <%= live_validation_for_field("profile_attributes_about_me", :presence => false, :maximum_length => Profile::ABOUT_ME_MAX) %> + <%= generate_countdown_html("profile_attributes_about_me", Profile::ABOUT_ME_MAX) %> +
+ - <%= p.label :update, "Update" %> +
- <%= f.submit "Update" %> + <% end %> +
-<%= p.label :about_me, "About Me" %>
- -
- - <% end %> +<% end %> -
- <%= p.text_area :about_me, :class => "observe_textlength" %> - <%= live_validation_for_field("profile_attributes_about_me", :presence => false, :maximum_length => Profile::ABOUT_ME_MAX) %> - <%= generate_countdown_html("profile_attributes_about_me", Profile::ABOUT_ME_MAX) %> -a href, b, big, blockquote, br, caption, center, cite, code, col, colgroup, del, dd, dt, dl, div, em, h1, h2, h3, h4, h5, h6, hr, i, img, ins, li, ol, p, pre, q, small, span, strike, strong, sub, sup, table, tr, td, th, tbody, thead, tfoot, u, ul
- <%= f.submit "Update" %> -
- <% end %> -
diff --git a/app/views/works/_search_box.html.erb b/app/views/works/_search_box.html.erb index 977d18f563a..2255cbd1f89 100644 --- a/app/views/works/_search_box.html.erb +++ b/app/views/works/_search_box.html.erb @@ -1,8 +1,7 @@ <%= form_tag url_for(:controller => 'works', :action => 'search'), :class => 'simple search', :id => 'search', :method => :get do %>- - <% end %> diff --git a/app/views/works/_search_form.html.erb b/app/views/works/_search_form.html.erb index 7e0a5d44beb..79c8e20d6a9 100644 --- a/app/views/works/_search_form.html.erb +++ b/app/views/works/_search_form.html.erb @@ -79,9 +79,10 @@<%= text_field_tag "query[text]", nil, :class => 'text', :title => 'site search', :id => 'site_search' %> - <%= submit_tag t('.forms.search', :default => 'Search'), :class => 'button', :name => nil %>
+<%= text_field_tag "query[text]", nil, :class => 'text', :title => 'site search', :id => 'site_search' %>tip: <%= random_search_tip %> + <%= submit_tag t('.forms.search', :default => 'Search'), :class => 'button', :name => nil %>
- <%= check_box_tag "query[complete]", false, !@query[:complete].blank?, :id => 'refine_complete' %>
- -- <%= submit_tag ts('Search works'), :class => 'button', :name => nil %> -
+- Submit
+- + <%= submit_tag ts('Search works'), :class => 'button', :name => nil %> +
+ <% end %> diff --git a/app/views/works/_work_header.html.erb b/app/views/works/_work_header.html.erb index ab6da1f590e..f070d304e93 100644 --- a/app/views/works/_work_header.html.erb +++ b/app/views/works/_work_header.html.erb @@ -20,11 +20,10 @@ -
<%= link_to 'Chapter Index', navigate_work_path(@work), :remote => true, :id => "chapter_index_toggle" %>
-
<%= link_to 'View full-page index', navigate_work_path(@work) %>
+<%= link_to 'View full-page index', navigate_work_path(@work) %>
<%= form_tag url_for({:controller => :chapters, :action => :show, :work_id => @work}), :method => :get do %> - <% options = @chapters.map{|c| [c.abbreviated_display_title.html_safe, c.id] } %> - <%= select_tag :selected_id, options_for_select(options, params[:id].to_i) %> - <%= submit_tag "Go" %> +<%= select_tag :selected_id, options_from_collection_for_select(@chapters, :id, :abbreviated_display_title, params[:id].to_i) %> + <%= submit_tag "Go" %>
<% end %>
diff --git a/app/views/works/search.html.erb b/app/views/works/search.html.erb
index 7ff69b1a552..48d1362260a 100644
--- a/app/views/works/search.html.erb
+++ b/app/views/works/search.html.erb
@@ -28,7 +28,7 @@
<% unless @query %>
<% @query ||= {} %>
<% end %>
- <%= text_field_tag "query[text]", @query[:text], :id => 'refine_text' %>
+
-+
diff --git a/app/views/tag_wranglings/index.html.erb b/app/views/tag_wranglings/index.html.erb index 63a23ab08ba..c58ef374804 100644 --- a/app/views/tag_wranglings/index.html.erb +++ b/app/views/tag_wranglings/index.html.erb @@ -62,9 +62,9 @@ get started. (Note: to associate relationships with characters, first choose a f <%= submit_tag "Wrangle" %>
-
-- + + + Individual Selection Table
diff --git a/app/views/tags/_search_form.html.erb b/app/views/tags/_search_form.html.erb index 44ca0c36e94..ab126e36441 100644 --- a/app/views/tags/_search_form.html.erb +++ b/app/views/tags/_search_form.html.erb @@ -8,7 +8,7 @@ <%= select_tag "query[type]", options_for_select([""] + Tag::USER_DEFINED, @query[:type]) %> <%= check_box_tag "query[canonical]", true, @query[:canonical], :id => 'canonical' %> <%= link_to_help "tag-search-type-help" %> - - <%= submit_tag ts("Search tags"), :name => nil %> + <%= submit_tag ts("Search tags"), :name => nil %> +<%= random_search_tip %> <% end %> diff --git a/app/views/tags/edit.html.erb b/app/views/tags/edit.html.erb index cf6d174fabc..c867ad51114 100644 --- a/app/views/tags/edit.html.erb +++ b/app/views/tags/edit.html.erb @@ -39,7 +39,7 @@ <%= f.check_box("canonical", :disabled => !(logged_in_as_admin? || Tag::USER_DEFINED.include?(@tag.class.name)) || !@tag.mergers.empty? || !@tag.children.empty? ) %> <%= "This is the official name for the " + @tag.class.name %> <% if Tag::USER_DEFINED.include?(@tag.class.name) && @tag.canonical? && (!@tag.mergers.empty? || !@tag.children.empty?) %> -
@@ -52,3 +54,4 @@ <% end %> +<%= link_to 'Make tag non-canonical and unhook all associations', {:controller => :tags, :action => :update, 'tag[canonical]' => 0, :id => @tag}, :method => :put, :confirm => "Are you sure?" %>
+<%= link_to 'Make tag non-canonical and unhook all associations', {:controller => :tags, :action => :update, 'tag[canonical]' => 0, :id => @tag}, :method => :put, :confirm => "Are you sure?" %>
<% end %> @@ -54,7 +54,7 @@ <%= f.text_field :syn_string, autocomplete_options("tag?type=#{@tag.type.downcase}", :class => 'autocomplete tags', :autocomplete_token_limit => 1) %>Choose an existing tag or add a new tag name here to create a new canonical and associate this tag with it.
<% if @tag.merger %> -Edit <%= link_to_edit_tag(@tag.merger) %>
+Edit <%= link_to_edit_tag(@tag.merger) %>
<% elsif @tag.canonical? %>Adding a synonym to a canonical tag will make it non-canonical and move its associations to the other tag. (Be careful with this!)
@@ -70,7 +70,7 @@-
<% @tag.parent_types.each do |tag_type| %>
<% if tag_type == 'Fandom' && !@suggested_fandoms.blank? %>
-
<%= link_to 'See all fandoms', {:controller => :tags, :action => :wrangle, :id => @tag, :show => 'fandoms'} %>
+<%= link_to 'See all fandoms', {:controller => :tags, :action => :wrangle, :id => @tag, :show => 'fandoms'} %>
<% end %>diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb index 5a2efdf0797..6ae686df7a0 100644 --- a/app/views/tags/index.html.erb +++ b/app/views/tags/index.html.erb @@ -16,7 +16,7 @@ <%= ts('Random Tags')%> <% end %> - -
+
- <%= f.label("type_#{type.downcase}", type) %>
+-
+ <% types.each do |type| %>
+
<%= @tag.name %>
- <% if can_wrangle? %> --
+
+ <% if can_wrangle? %>
+
-
-
-
+
<%= ts('Sorry!') %>
diff --git a/app/views/users/_header.html.erb b/app/views/users/_header.html.erb index 4cfcf25a761..3530b2e73b3 100644 --- a/app/views/users/_header.html.erb +++ b/app/views/users/_header.html.erb @@ -4,7 +4,7 @@
<%= @author ? link_to_unless_current(display_name, user_pseud_path(user, @author)) : link_to_unless_current(display_name, user) %>
-<%= icon_display(@user, @author) %>
+<%= icon_display(@user, @author) %>
diff --git a/app/views/users/_sidebar.html.erb b/app/views/users/_sidebar.html.erb index 92a47f896c8..d1414aa869a 100644 --- a/app/views/users/_sidebar.html.erb +++ b/app/views/users/_sidebar.html.erb @@ -38,10 +38,10 @@ <% end %> <% else %> <% if @user == current_user %> --
<% if @user == current_user %>
-
-
-
<%= text_field_tag "query[text]", @query[:text], :id => 'refine_text' %> <%= link_to_help "work-search-text-help" %> (any field) <%= hidden_field_tag "query[tag]", @query[:tag] %> @@ -50,6 +50,8 @@ <%= submit_tag ts('Refine search'), :class => 'button', :name => nil %> <% end %> +
+<%= random_search_tip %> <% end %> diff --git a/app/views/works/show_multiple.html.erb b/app/views/works/show_multiple.html.erb index 0b87532f74a..9a49c87a31c 100644 --- a/app/views/works/show_multiple.html.erb +++ b/app/views/works/show_multiple.html.erb @@ -1,6 +1,8 @@Edit <%= @author ? print_pseud_works_link(@author) : print_works_link(@user) %>
+<%= form_tag edit_multiple_user_works_path(@user), :id => 'edit-multiple-works' do %> +<% # FRONT END PLEASE CHECK THIS OVER I AM KEEPING THE VERSION FROM MY WEBDEV -- NN %><%= submit_tag ts("Edit Checked") %>
<%= ts("Editing Options") %> + ++ + <% for work in @works %><%= render :partial => 'edit_multiple_controls' %> +@@ -39,11 +46,6 @@ <% end %> - -- -<%= render :partial => 'edit_multiple_controls' %> -
Filters
+
+ <%= ts("Archive Skin Wizard") %>
diff --git a/app/views/skins/edit.html.erb b/app/views/skins/edit.html.erb index 0f9f09da668..1414173aaa1 100644 --- a/app/views/skins/edit.html.erb +++ b/app/views/skins/edit.html.erb @@ -15,6 +15,6 @@ <%= render :partial => 'form', :locals => {:f => f} %> <% end %> - <%= f.submit ts('Update') %> +<%= f.submit ts('Update') %>
<% end %> diff --git a/app/views/skins/index.html.erb b/app/views/skins/index.html.erb index 38e51508cbb..fa3515cd9b6 100644 --- a/app/views/skins/index.html.erb +++ b/app/views/skins/index.html.erb @@ -1,14 +1,3 @@ - --
-
<%= @title %>
diff --git a/app/views/skins/new.html.erb b/app/views/skins/new.html.erb index 0864cbed650..76eda6534af 100644 --- a/app/views/skins/new.html.erb +++ b/app/views/skins/new.html.erb @@ -11,6 +11,6 @@ <%= render :partial => 'form', :locals => {:f => f} %> - <%= f.submit ts('Create') %> +
<%= f.submit ts('Create') %>
<% end %> diff --git a/app/views/tag_wranglers/index.html.erb b/app/views/tag_wranglers/index.html.erb index 62972d31021..ce5d6025ff2 100644 --- a/app/views/tag_wranglers/index.html.erb +++ b/app/views/tag_wranglers/index.html.erb @@ -11,22 +11,26 @@ <%= form_tag url_for(:controller => 'tag_wranglers', :action => "create") do %><%= submit_tag 'Assign' %>
++ Assign fandoms to yourself
-<%= label_tag "tag_fandom_string", "Enter as many fandoms as you like:" %>
<%= text_field_tag "tag_fandom_string", params[:sign_up_fandoms], autocomplete_options("fandom") %> --
<% @assignments.group_by(&:name).each do |name, assignments| %>
- <% if related_work.work.unrevealed? %> -
-
<% for bookmark in @recent_bookmarks %>
<%= render :partial => 'bookmarks/bookmark_user_info', :locals => {:bookmark => bookmark} %>
<% end %>
diff --git a/app/views/bookmarks/_search_form.html.erb b/app/views/bookmarks/_search_form.html.erb
index d1251702e46..9c8e8b6b099 100644
--- a/app/views/bookmarks/_search_form.html.erb
+++ b/app/views/bookmarks/_search_form.html.erb
@@ -56,10 +56,8 @@
<%= text_field_tag "query[text]", @query[:text], :id => 'refine_text' %>
<%= link_to_help "bookmark-search-text-help" %>
-
-
-
- <%= submit_tag t('.bookmarks.search', :default => 'Search bookmarks'), :name => nil %>
-
+
<% ts("Add %{title} to collections", :title => item.title) %> -
+<% ts("Add %{title} to collections", :title => item.title) %>
<%= form_for([item, @collection_item], :url => {:controller => 'collection_items', :action => :create}) do |form| %>diff --git a/app/views/collection_items/index.html.erb b/app/views/collection_items/index.html.erb index 581b14472de..f39759a6199 100644 --- a/app/views/collection_items/index.html.erb +++ b/app/views/collection_items/index.html.erb @@ -7,7 +7,7 @@ -
<%= link_to(ts("Word Count"), controller.request.fullpath.split('?').first + "?sort=word_count") %> | <%= link_to(ts("Date Last Updated"), controller.request.fullpath.split('?').first + "?sort=date") %> | -<%=h t('.ci_index.manage', :default => "Manage") %> | +<%=h t('.ci_index.manage', :default => "Manage") %> | @@ -58,4 +58,5 @@ <% end %>
---|
Filters
<%= form_tag collections_url, :method => :get, :class => 'filters' do %> - <%= field_set_tag t('.filter_these', :default => 'Filter collections:') do %> +Filters
+<%= field_set_tag t('.filter_these', :default => 'Filter collections:') do %>-
<% for inbox_comment in @inbox_comments %>
<%= authors_header @authors %> <%= "in" %> '<%= (params[:letter] && params[:letter].is_a?(String)) ? params[:letter] : @pseuds_alphabet[0] %>' <%= ts("in %{collection}", :collection => @collection.title) %>
-Next Page Navigation
+ + +Next Page Navigation
<%= alpha_paginated_section @pseuds_alphabet %> <%= paginated_section @authors do %> - --
+
+
+
-
<% @authors.each do |author| %>
<%= render 'author_blurb', :author => author %>
<% end %>
-
Next Page Navigation
+<%= alpha_paginated_section @pseuds_alphabet %> <% else %><%= link_to "People Search (Alpha)", search_people_path %>
<% end %> diff --git a/app/views/preferences/index.html.erb b/app/views/preferences/index.html.erb index 5a996b61da5..913324e0a0f 100644 --- a/app/views/preferences/index.html.erb +++ b/app/views/preferences/index.html.erb @@ -1,5 +1,5 @@ -<%= ts('Update My Preferences') %>
+<%= ts('Set My Preferences') %>
<%= error_messages_for :preference %> @@ -16,7 +16,9 @@ <%= form_for(@preference, :url => { :action => "update", :user_id => @user }) do |f| %> -<%= ts("Privacy") %>
+<%= ts("Privacy") %>
<%= ts("Site Display") %>
+<%= ts("Site Display") %>
<%= ts("Statistics") %>
<%= ts("Comments") %>
<%= ts("Collections, Challenges and Gifts") %>
<%= ts("Misc") %>
+<%= ts("Misc") %>
<%= f.submit t('.forms.update', :default => "Update") %> diff --git a/app/views/profile/show.html.erb b/app/views/profile/show.html.erb index ca8b72910ef..d8a32115687 100644 --- a/app/views/profile/show.html.erb +++ b/app/views/profile/show.html.erb @@ -26,7 +26,7 @@ <% unless @user.profile.about_me.blank? %>
<%=h ts("Bio:") %>
+<%=h ts("Bio") %>
<%=raw sanitize_field(@user.profile, :about_me) %>
- <%= f.submit button_text %> -
+ +<%= t('.deleted_work', :default => '(deleted work, last viewed %{date})', :date => set_format_for_date(reading.last_viewed)) %>
<% else %> diff --git a/app/views/related_works/index.html.erb b/app/views/related_works/index.html.erb index 57454dac349..c8d5b024bbd 100644 --- a/app/views/related_works/index.html.erb +++ b/app/views/related_works/index.html.erb @@ -10,6 +10,15 @@ <% unless @translations_of_user.blank? %>Translations of <%= @user.login %>'s works
+ <% # FRONT END!!! + # This page is: + # Foo's Related Works + # works by foo that someone has translated + # works by others that foo has translated + # works by foo that inspired other people + # works by others that inspired foo + # this should be four listboxes + %>Original | -Translation | -Language | - <% if current_user == @user %> -Remove connection | - <% end %> -
---|---|---|---|