Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 4141: New text for tag_wranglings page #1918

Merged
merged 13 commits into from
Nov 21, 2014
Next Next commit
Issue 4141: Update the Tag Wranglings page with more information
  • Loading branch information
LadyOscar committed Nov 20, 2014
commit 8aefc80d5aadbf0a628b9230fb4a7f0bb01ce6cc
98 changes: 79 additions & 19 deletions app/views/tag_wranglings/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,41 @@
<!--Descriptive page name, messages and instructions-->
<h2 class="heading"><%= ts('Tag Wrangling') %></h2>
<% unless params[:show] %>
<h4 class="landmark heading"><%= ts('Notes') %></h4>
<ul class="notes">
<li><%= ts("Make tags canonical according to <a href=\"#{archive_faqs_path + "/31"}\">the wrangling guidelines</a>.".html_safe) %></li>
<li><%= ts("For more information on wrangling and volunteer guidelines, see <a href=\"http://wiki.transformativeworks.org/mediawiki/Category:Tag_Wrangling_Committee\">the internal OTW wiki</a>. If you have trouble accessing the wiki, or any other questions, please <a href=\"mailto: [email protected]\">email the wrangling staff</a>.".html_safe) %></li>
</ul>
<h3 class="heading">General Information:</h3>
<h4 class="landmark heading"><%= ts('Notes') %></h4>
<ul class="notes">
<li>Make tags canonical according to the <%= link_to 'wrangling guidelines', wrangling_
guidelines_path %>.</li>
<li>If you have trouble accessing the wiki, or any other questions, please <a href="mai
lto:[email protected]">email the wrangling staff</a> or for confid
ential issues please <a href="mailto:[email protected]">email tag
wrangling chairs</a>.</li>
</ul>
<h3 class="heading">Additional Resources:</h3>
<ul>
<li><a href="http://wiki.transformativeworks.org/mediawiki/Category:Tag_Wrangling_Commi
ttee">Tag Wrangling Committee</a> - Full collection of wiki links &amp; policies.</li>
<li><a href="http://wiki.transformativeworks.org/mediawiki/Category:Tag_Wrangler_Traini
ng">Tag Wrangling Training</a> - New wranglers, start here!</li>
<li><a href="http://wiki.transformativeworks.org/mediawiki/Tag_Wrangling_FAQ">Tag Wrang
ling FAQ</a> - Please check here before emailing Staff.</li>
<li><a href="http://code.google.com/p/otwarchive/issues/list?can=2&q=roadmap=TagWrangli
ng">Tag Wrangling gCode</a> - Known bugs</li>
<li><a href="https://secure.transformativeworks.org/mailman/private/tagwranglers/">Tag
Wrangler Mailing List Archives</a> (For more information please see <a href="http://wiki.tr
ansformativeworks.org/mediawiki/Tag_Wrangler_Mailing_List">Tag Wrangler Mailing List</a>)</
li>
<li><a href="https://fanarchive.campfirenow.com/">Campfire Chat</a> (For more informati
on please see <a href="http://wiki.transformativeworks.org/mediawiki/How_to_Use_Campfire_-_
An_Interactive_Tutorial">Wrangler Chat</a>)</li>
<li><a href="http://wiki.transformativeworks.org/mediawiki/Fandoms_in_need_of_Cowrangle
rs">Fandoms in need of Cowranglers and fandoms up for grabs</a></li>
<li><a href="http://archiveofourown.org/fandoms/unassigned?sort=count">Unassigned Fando
ms</a></li>
<li><a href="http://wiki.transformativeworks.org/mediawiki/Category:Fandoms_%26_Megafando
ms">Fandom &amp; Megafandom notes</a></li>
</ul>
<% end %>
<% end %>

<!--/descriptions-->
Expand All @@ -25,7 +55,8 @@
<% elsif @tags %>
<%= will_paginate @tags %>

<%= form_tag url_for(controller: 'tag_wranglings', action: 'wrangle'), method: :post, id: 'wrangulator' do %>
<%= form_tag url_for(controller: 'tag_wranglings', action: 'wrangle'), method: :post, i
d: 'wrangulator' do %>
<fieldset>
<legend><%= ts('Assign and Mass Select') %></legend>

Expand All @@ -35,7 +66,8 @@
<dd><%= select_tag :media, options_for_select(@media_names) %></dd>
<% else %>
<dt><%= label_tag :fandom_string, ts('Wrangle to Fandom(s)') %></dt>
<dd title="<%= ts('wrangle to fandom(s)') %>"><%= text_field_tag 'fandom_string', params[:fandom_string], autocomplete_options('fandom') %></dd>
<dd title="<%= ts('wrangle to fandom(s)') %>"><%= text_field_tag 'fandom_string
', params[:fandom_string], autocomplete_options('fandom') %></dd>
<% end %>
<dt class="landmark"><%= ts('Submit') %></dt>
<dd class="submit"><%= submit_tag ts('Wrangle') %></dd>
Expand All @@ -48,8 +80,11 @@
<h3 class="landmark heading"><%= ts('Individual Selection Table') %></h3>

<div class="wrapper">
<table summary="<%= ts('A subset of tags listed by name, with options to edit, wrangle, or view works tagged thus. Also listed is when each tag was created, whether each is canonical, and the number of works tagged thus.') %>" id="wrangulise">
<caption><%= @tags.first.class.to_s.pluralize %> <%= ts('to be Wrangled') %></caption>
<table summary="<%= ts('A subset of tags listed by name, with options to edit, wr
angle, or view works tagged thus. Also listed is when each tag was created, whether each is
canonical, and the number of works tagged thus.') %>" id="wrangulise">
<caption><%= @tags.first.class.to_s.pluralize %> <%= ts('to be Wrangled') %></c
aption>

<colgroup>
<col class="name" />
Expand All @@ -61,8 +96,10 @@
<th scope="col">
<%= sort_link ts('Tag Name'), :name %>
<ul class="actions" role="menu">
<li><a id="wrangle_all_select" title="<%= ts('select') %>"><%= ts('All') %></a></li>
<li><a id="wrangle_all_deselect" title="<%= ts('select') %>"><%= ts('None') %></a></li>
<li><a id="wrangle_all_select" title="<%= ts('select') %>"><%= ts('All'
) %></a></li>
<li><a id="wrangle_all_deselect" title="<%= ts('select') %>"><%= ts('No
ne') %></a></li>
</ul>
</th>
<th scope="col" title="<%= ts('sort by') %>">
Expand All @@ -71,8 +108,10 @@
<th scope="col">
<%= ts('Canonical') %>
<ul class="actions" role="menu">
<li><a id="canonize_all_select" title="<%= ts('select') %>"><%= ts('All') %></a></li>
<li><a id="canonize_all_deselect" title="<%= ts('select') %>"><%= ts('None') %></a></li>
<li><a id="canonize_all_select" title="<%= ts('select') %>"><%= ts('All
') %></a></li>
<li><a id="canonize_all_deselect" title="<%= ts('select') %>"><%= ts('N
one') %></a></li>
</ul>
</th>
<th scope="col" title="<%= ts('sort by') %>">
Expand All @@ -85,15 +124,32 @@
<tfoot>
<tr>
<th scope="row" colspan="4"><%= ts('Action:') %></th>
<td><span class="submit actions"><%= submit_tag ts('Wrangle') %></span></td>
<td><span class="submit actions"><%= submit_tag ts('Wrangle') %></span></td
>
</tr>
</tfoot>

<tbody>
<% @tags.each do |tag| %>
<tr>
<th scope="row" title="<%= ts('tag') %>">
<%= check_box_tag 'selected_tags[]', tag.id, nil, id: "selected_tags_#{
</thead>

<tfoot>
<tr>
<th scope="row" colspan="4"><%= ts('Action:') %></th>
<td><span class="submit actions"><%= submit_tag ts('Wrangle') %></span></td
>
</tr>
</tfoot>

<tbody>
<% @tags.each do |tag| %>
<tr>
<th scope="row" title="<%= ts('tag') %>">
<%= check_box_tag 'selected_tags[]', tag.id, nil, id: "selected_tags_#{tag.id}" %>
<%= check_box_tag 'selected_tags[]', tag.id, nil, id: "selected_tags_#{
tag.id}" %>
<%= label_tag "selected_tags_#{tag.id}", "#{tag.name}" %>
</th>

Expand All @@ -103,17 +159,21 @@
<% if tag.canonical? %>
<%= ts('Yes') %>
<% else %>
<%= check_box_tag 'canonicals[]', tag.id, tag.canonical?, id: "canonicals_#{tag.id}" %>
<%= check_box_tag 'canonicals[]', tag.id, tag.canonical?, id: "canoni
cals_#{tag.id}" %>
<% end %>
</td>

<td title="<%= ts('taggings') %>"><%= tag.taggings_count %></td>

<td>
<ul class="actions" role="navigation">
<li><%= link_to ts('Edit'), {controller: :tags, action: :edit, id: tag} %></li>
<li><%= link_to ts('Wrangle'), {controller: :tags, action: :wrangle, id: tag} %></li>
<li><%= link_to ts('Works'), {controller: :works, action: :index, tag_id: tag} %></li>
<li><%= link_to ts('Edit'), {controller: :tags, action: :edit, id: ta
g} %></li>
<li><%= link_to ts('Wrangle'), {controller: :tags, action: :wrangle,
id: tag} %></li>
<li><%= link_to ts('Works'), {controller: :works, action: :index, tag
_id: tag} %></li>
</ul>
</td>
</tr>
Expand Down