add comments to user profile
This commit is contained in:
@@ -70,7 +70,7 @@ class UserPresenter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def comments(template)
|
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
|
end
|
||||||
|
|
||||||
def post_versions(template)
|
def post_versions(template)
|
||||||
|
|||||||
@@ -44,6 +44,9 @@
|
|||||||
|
|
||||||
<dt>Approvals</dt>
|
<dt>Approvals</dt>
|
||||||
<dd><%= @presenter.approvals(self) %></dd>
|
<dd><%= @presenter.approvals(self) %></dd>
|
||||||
|
|
||||||
|
<dt>Comments</dt>
|
||||||
|
<dd><%= @presenter.comments(self) %></dd>
|
||||||
|
|
||||||
<dt>Feedback</dt>
|
<dt>Feedback</dt>
|
||||||
<dd><%= @presenter.feedbacks(self) %></dd>
|
<dd><%= @presenter.feedbacks(self) %></dd>
|
||||||
|
|||||||
Reference in New Issue
Block a user