Skip to content

Commit

Permalink
320: Add scope, headers, and summary to new unsorted tags table
Browse files Browse the repository at this point in the history
  • Loading branch information
sarken committed Sep 1, 2012
1 parent 109e906 commit 80de1f5
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions app/views/unsorted_tags/index.html.erb
Expand Up @@ -6,16 +6,26 @@

<p><%= submit_tag ts("Update") %></p>

<table>
<% @tags.each do |tag| %>
<% cache("unsorted-#{tag.cache_key}") do %>
<table summary="<%= ts("Tags used on bookmarks that need to be sorted into tag categories.") %>">
<caption><%= ts("Unsorted Tags") %></caption>
<thead>
<tr>
<td><%= link_to tag.name, edit_tag_path(tag) %></td>
<td><%= link_to ts("Bookmarks (%{count})", :count => tag.bookmarks.count), tag_bookmarks_path(tag) %></td>
<td><%= select_tag "tags[#{tag.id}]", options_for_select(["", ts("Fandom"), ts("Character"), ts("Relationship"), ts("Freeform")]) %></td>
<th scope="col"><%= ts("Tag") %></th>
<th scope="col"><%= ts("Uses") %></th>
<th scope="col"><%= ts("Category") %></th>
</tr>
</thead>
<tbody>
<% @tags.each do |tag| %>
<% cache("unsorted-#{tag.cache_key}") do %>
<tr>
<th scope="row"><%= link_to tag.name, edit_tag_path(tag) %></td>
<td><%= link_to ts("Bookmarks (%{count})", :count => tag.bookmarks.count), tag_bookmarks_path(tag) %></td>
<td><%= select_tag "tags[#{tag.id}]", options_for_select(["", ts("Fandom"), ts("Character"), ts("Relationship"), ts("Freeform")]) %></td>
</tr>
<% end %>
<% end %>
<% end %>
</tbody>
</table>

<p><%= submit_tag ts("Update") %></p>
Expand Down

0 comments on commit 80de1f5

Please sign in to comment.