add references to user statistics page about saved searches

This commit is contained in:
r888888888
2017-01-20 16:42:17 -08:00
parent 48e66cddbb
commit c7b5a4e229
4 changed files with 23 additions and 4 deletions

View File

@@ -111,9 +111,7 @@
<th>Appeals</th>
<td><%= presenter.appeal_count(self) %></td>
</tr>
<% end %>
<% if CurrentUser.user.id == user.id || CurrentUser.is_moderator? %>
<tr>
<th>Flags</th>
<td><%= presenter.flag_count(self) %></td>
@@ -145,7 +143,18 @@
</tr>
<% end %>
<% if CurrentUser.user.id == user.id %>
<% if CurrentUser.id == user.id %>
<% if CurrentUser.has_saved_searches? %>
<tr>
<th>Saved Searches</th>
<td>
<% SavedSearch.categories_for(CurrentUser.user).each do |category| %>
<p><%= link_to category, posts_path(tags: "search:#{category}") %></p>
<% end %>
</td>
</tr>
<% end %>
<tr>
<th>API Key</th>
<td>