From 57e57ca3845026a5f1598a8ef7603a15d03f3daf Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 19 Feb 2013 22:25:01 -0500 Subject: [PATCH] add comments to user profile --- app/presenters/user_presenter.rb | 2 +- app/views/users/show.html.erb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/presenters/user_presenter.rb b/app/presenters/user_presenter.rb index e2586ed2c..038676ed1 100644 --- a/app/presenters/user_presenter.rb +++ b/app/presenters/user_presenter.rb @@ -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) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 595a14d12..e15810367 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -44,6 +44,9 @@
Approvals
<%= @presenter.approvals(self) %>
+ +
Comments
+
<%= @presenter.comments(self) %>
Feedback
<%= @presenter.feedbacks(self) %>