Permalink
Browse files

320: Add scope, headers, and summary to new unsorted tags table

  • Loading branch information...
1 parent 109e906 commit 80de1f5091ac066e1ea1907c0ac2240eac73e6f8 @sarken sarken committed Sep 1, 2012
Showing with 17 additions and 7 deletions.
  1. +17 −7 app/views/unsorted_tags/index.html.erb
@@ -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>

0 comments on commit 80de1f5

Please sign in to comment.