profiles: add 'refresh' link next to post changes count.

Remove the 'Refresh counts' link from the site map. Put it in the user's
profile instead.
This commit is contained in:
evazion
2019-08-15 12:51:51 -05:00
parent 5ceb71da8d
commit 01c4395105
2 changed files with 6 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
<td>
<%= presenter.upload_count(self) %>
<% if presenter.has_uploads? %>
[<%= link_to "tag changes report", reports_upload_tags_path(user_id: user.id) %>]
(<%= 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") %>]
@@ -82,7 +82,10 @@
<td>
<%= presenter.post_version_count(self) %>
<% if CurrentUser.is_moderator? && UserRevert.can_revert?(user)%>
[<%= link_to "revert all", new_user_revert_path(user_id: user.id) %>]
(<%= link_to "revert all", new_user_revert_path(user_id: user.id) %>)
<% end %>
<% if CurrentUser.id == user.id %>
(<%= link_to "refresh", new_maintenance_user_count_fixes_path %>)
<% end %>
</td>
</tr>