From 84ac24af752b01013a5c306e736e69d53be5cb3a Mon Sep 17 00:00:00 2001 From: Marek Labos Date: Mon, 20 Aug 2012 01:33:54 +0200 Subject: removing noisy "no comments" message --- app/views/refinery/blog/posts/_comments.html.erb | 59 ++++++++++++------------ 1 file changed, 29 insertions(+), 30 deletions(-) (limited to 'app/views/refinery') diff --git a/app/views/refinery/blog/posts/_comments.html.erb b/app/views/refinery/blog/posts/_comments.html.erb index 8415971..daccd78 100644 --- a/app/views/refinery/blog/posts/_comments.html.erb +++ b/app/views/refinery/blog/posts/_comments.html.erb @@ -1,38 +1,37 @@ -- cgit v1.2.3 From 563c8749b8ba79f07d1cb32e0d8ac078b35027fe Mon Sep 17 00:00:00 2001 From: Marek Labos Date: Mon, 20 Aug 2012 01:36:53 +0200 Subject: moving condition for displaying comments into comments template --- app/views/refinery/blog/posts/show.html.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/views/refinery') diff --git a/app/views/refinery/blog/posts/show.html.erb b/app/views/refinery/blog/posts/show.html.erb index bc9b203..f04ae0b 100644 --- a/app/views/refinery/blog/posts/show.html.erb +++ b/app/views/refinery/blog/posts/show.html.erb @@ -3,9 +3,7 @@ <%= render 'post' %> - <% if Refinery::Blog::Post.comments_allowed? %> - <%= render 'comments'%> - <% end %> + <%= render 'comments' %> <% end %> <%= render '/refinery/blog/shared/body_content_right' %> -- cgit v1.2.3 From 515313438da13faa9555665683d4321fd9bf0d49 Mon Sep 17 00:00:00 2001 From: Marek Labos Date: Mon, 20 Aug 2012 01:38:17 +0200 Subject: rewrite comments count msg + add link to comments section --- app/views/refinery/blog/shared/_post.html.erb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'app/views/refinery') diff --git a/app/views/refinery/blog/shared/_post.html.erb b/app/views/refinery/blog/shared/_post.html.erb index 40ae70b..532d48f 100644 --- a/app/views/refinery/blog/shared/_post.html.erb +++ b/app/views/refinery/blog/shared/_post.html.erb @@ -34,15 +34,11 @@ <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) %> <% end %>

- + <% if Refinery::Blog::Post.comments_allowed? %> + + <% end %> <% end %> -- cgit v1.2.3