reorganized ui for tag subscriptions

This commit is contained in:
albert
2013-02-18 15:17:14 -05:00
parent afb5d3138f
commit 60029628b9
4 changed files with 18 additions and 5 deletions

View File

@@ -7,14 +7,23 @@
<th>Creator</th>
<th>Name</th>
<th>Tag Query</th>
<% if CurrentUser.is_admin? %>
<th>Count</th>
<% end %>
<th></th>
</tr>
</thead>
<tbody>
<% @tag_subscriptions.each do |tag_subscription| %>
<tr>
<td><%= link_to tag_subscription.creator.name, user_path(tag_subscription.creator_id) %></td>
<td><%= link_to tag_subscription.name, edit_tag_subscription_path(tag_subscription) %></td>
<td><%= link_to tag_subscription.tag_query, posts_path(:tags => "sub:#{tag_subscription.creator.name}:#{tag_subscription.name}") %></td>
<td><%= tag_subscription.name %></td>
<td><%= tag_subscription.tag_query %></td>
<td><%= tag_subscription.post_id_array.size %></td>
<td>
<%= link_to "edit", edit_tag_subscription_path(tag_subscription) %>
| <%= link_to "posts", posts_path(:tags => "sub:#{tag_subscription.creator.name}:#{tag_subscription.name}") %>
</td>
</tr>
<% end %>
</tbody>

View File

@@ -9,7 +9,7 @@
</aside>
<section id="content">
<h1>Tag Subscriptions</h1>
<h1>Tag Subscriptions [<%= link_to "edit", tag_subscriptions_path %>]</h1>
<%= @post_set.presenter.post_previews_html(self) %>