Merge pull request #4761 from nonamethanks/fix-edit-link
User profiles: use name instead of id in links to post edits
This commit is contained in:
@@ -82,7 +82,7 @@ class UserPresenter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def post_version_count(template)
|
def post_version_count(template)
|
||||||
template.link_to(user.post_update_count, template.post_versions_path(:search => {:updater_id => user.id}))
|
template.link_to(user.post_update_count, template.post_versions_path(:search => {:updater_name => user.name}))
|
||||||
end
|
end
|
||||||
|
|
||||||
def note_version_count(template)
|
def note_version_count(template)
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<%= presenter.upload_count(self) %>
|
<%= presenter.upload_count(self) %>
|
||||||
<% if presenter.has_uploads? %>
|
<% if presenter.has_uploads? %>
|
||||||
(<%= link_to "tag changes report", post_versions_path(search: { updater_id: user.id, version: 1 }, type: "current") %>)
|
(<%= link_to "tag changes report", post_versions_path(search: { updater_name: user.name, version: 1 }, type: "current") %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if CurrentUser.is_moderator? %>
|
<% if CurrentUser.is_moderator? %>
|
||||||
[<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:#{PostSets::Post::MAX_PER_PAGE}") %>]
|
[<%= link_to "sample", posts_path(:tags => "user:#{user.name} order:random limit:#{PostSets::Post::MAX_PER_PAGE}") %>]
|
||||||
|
|||||||
Reference in New Issue
Block a user