move sample links to user statistics

This commit is contained in:
r888888888
2017-05-12 14:52:49 -07:00
parent 5ad7f1af91
commit 812ac13471
2 changed files with 16 additions and 8 deletions

View File

@@ -41,17 +41,31 @@
<% if presenter.has_uploads? %>
(<%= link_to "tag changes report", reports_upload_tags_path(user_id: user.id) %>)
<% end %>
<% if CurrentUser.is_moderator? %>
(<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:300") %>)
<% end %>
</td>
</tr>
<tr>
<th>Deleted Uploads</th>
<td><%= presenter.deleted_upload_count(self) %></td>
<td>
<%= presenter.deleted_upload_count(self) %>
<% if CurrentUser.is_moderator? %>
(<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:300 status:deleted") %>)
<% end %>
</td>
</tr>
<tr>
<th>Favorites</th>
<td><%= presenter.favorite_count(self) %></td>
<td>
<%= presenter.favorite_count(self) %>
<% if CurrentUser.is_moderator? %>
(<%= link_to "sample", posts_path(:tags => "fav:#{user.name} order:random limit:300") %>)
<% end %>
</td>
</tr>
<tr>