Commit a407f6239461266dd5534358995348873fe93f99
1 parent
37ee7e38
Exists in
master
and in
29 other branches
Use top lovel comments count to consider displaying top and bottom post button
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/content_viewer/view_page.html.erb
| @@ -80,7 +80,7 @@ | @@ -80,7 +80,7 @@ | ||
| 80 | </h3> | 80 | </h3> |
| 81 | <% end %> | 81 | <% end %> |
| 82 | 82 | ||
| 83 | - <% if @page.accept_comments? && @comments_count > 1 %> | 83 | + <% if @page.accept_comments? && @comments.count > 1 %> |
| 84 | <%= link_to(_('Post a comment'), '#', :class => 'display-comment-form', :id => 'top-post-comment-button', :onclick => "jQuery('#page-comment-form .display-comment-form').first().click();") %> | 84 | <%= link_to(_('Post a comment'), '#', :class => 'display-comment-form', :id => 'top-post-comment-button', :onclick => "jQuery('#page-comment-form .display-comment-form').first().click();") %> |
| 85 | 85 | ||
| 86 | <%= hidden_field_tag("page_url", url_for(:controller=>'content_viewer', :action=>'view_page', :profile=>profile.identifier)) %> | 86 | <%= hidden_field_tag("page_url", url_for(:controller=>'content_viewer', :action=>'view_page', :profile=>profile.identifier)) %> |