saved searches: add 'last refreshed' column to index page.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
<tr>
|
||||
<th data-sort="string">Query</th>
|
||||
<th data-sort="string">Labels</th>
|
||||
<th>Last Refreshed</th>
|
||||
<th class="links"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -31,6 +32,13 @@
|
||||
<%= link_to label, posts_path(:tags => "search:#{label}") %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<% if ss.refreshed_at.present? %>
|
||||
<%= time_ago_in_words_tagged ss.refreshed_at %>
|
||||
<% else %>
|
||||
><%= SavedSearch::REDIS_EXPIRY.inspect %> ago
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="links">
|
||||
<%= link_to "edit", edit_saved_search_path(ss) %>
|
||||
| <%= link_to "delete", saved_search_path(ss), :method => :delete, :remote => true %>
|
||||
|
||||
Reference in New Issue
Block a user