add comments to user profile

This commit is contained in:
albert
2013-02-19 22:25:01 -05:00
parent 2f72e99ed7
commit 57e57ca384
2 changed files with 4 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ class UserPresenter
end
def comments(template)
template.link_to(Comment.for_user(user.id).count, template.comments_path(:search => {:creator_id => user.id}))
template.link_to(Comment.for_creator(user.id).count, template.comments_path(:search => {:creator_id => user.id}))
end
def post_versions(template)

View File

@@ -44,6 +44,9 @@
<dt>Approvals</dt>
<dd><%= @presenter.approvals(self) %></dd>
<dt>Comments</dt>
<dd><%= @presenter.comments(self) %></dd>
<dt>Feedback</dt>
<dd><%= @presenter.feedbacks(self) %></dd>