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

@@ -2,7 +2,7 @@
<div id="a-new">
<h1>Refresh Counts</h1>
<p>If you believe the upload counts on your profile are incorrect, you can request a refresh to recalculate the counts.</p>
<p>If you believe the upload or post changes statistics on your profile are incorrect, you can request a refresh to recalculate them.</p>
<%= form_tag(maintenance_user_count_fixes_path) do %>
<%= submit_tag "Continue" %>

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>