saved searches: add 'last refreshed' column to index page.

This commit is contained in:
evazion
2019-09-02 22:08:24 -05:00
parent 2841f0742c
commit 05d8a05106
2 changed files with 20 additions and 3 deletions

View File

@@ -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 %>
&gt;<%= 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 %>