move sample links to user statistics
This commit is contained in:
@@ -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| %>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user