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

@@ -2,9 +2,6 @@
<div class="box user-uploads">
<h2>
<%= link_to "Uploads", posts_path(:tags => "user:#{user.name}") %>
<% if CurrentUser.is_admin? %>
(<%= link_to "random", posts_path(:tags => "user:#{user.name} order:random limit:100") %>)
<% end %>
</h2>
<div>
<% presenter.uploads.each do |post| %>
@@ -18,9 +15,6 @@
<div class="box user-favorites">
<h2>
<%= link_to "Favorites", favorites_path(:user_id => user.id) %>
<% if CurrentUser.is_admin? %>
(<%= link_to "random", posts_path(:tags => "fav:#{user.name} order:random limit:100") %>)
<% end %>
</h2>
<div>
<% presenter.favorites.each do |post| %>

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>