This commit is contained in:
Toks
2013-08-02 10:42:11 -04:00
parent ed3c332062
commit 87478f3658
2 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,11 @@
<div id="c-comments">
<div id="a-index">
<h1>Comments</h1>
<% if !CurrentUser.user.is_builder? %>
<div style="margin-bottom: 1em;">
<h2>Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.</h2>
</div>
<% end %>
<% if @posts.empty? %>
<%= render "post_sets/blank" %>

View File

@@ -59,6 +59,9 @@
</menu>
<section id="comments">
<% if !CurrentUser.user.is_builder? %>
<h2>Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.</h2>
<% end %>
<%= render "comments/partials/index/list", :comments => @post.comments.visible(CurrentUser.user), :post => @post, :show_header => false %>
</section>