diff --git a/app/controllers/public/content_viewer_controller.rb b/app/controllers/public/content_viewer_controller.rb index 47dec71..89041bd 100644 --- a/app/controllers/public/content_viewer_controller.rb +++ b/app/controllers/public/content_viewer_controller.rb @@ -100,6 +100,7 @@ class ContentViewerController < ApplicationController end @comments = @page.comments(true).as_thread + @comments_count = @page.comments.count if params[:slideshow] render :action => 'slideshow', :layout => 'slideshow' end diff --git a/app/views/content_viewer/view_page.rhtml b/app/views/content_viewer/view_page.rhtml index dfea761..7b8df40 100644 --- a/app/views/content_viewer/view_page.rhtml +++ b/app/views/content_viewer/view_page.rhtml @@ -125,7 +125,7 @@

> <%= number_of_comments(@page) %>

- <% if @comments.size > 0 %> + <% if @comments_count > 1 %>

<%= _('Post a comment') %>

<% end %>