From 87478f3658539b32d45cc61bb5b722adf43e0bc4 Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 2 Aug 2013 10:42:11 -0400 Subject: [PATCH] fixes #1913 --- app/views/comments/index_by_post.html.erb | 5 +++++ app/views/posts/show.html.erb | 3 +++ 2 files changed, 8 insertions(+) diff --git a/app/views/comments/index_by_post.html.erb b/app/views/comments/index_by_post.html.erb index e268fb45b..cde6df9ef 100644 --- a/app/views/comments/index_by_post.html.erb +++ b/app/views/comments/index_by_post.html.erb @@ -1,6 +1,11 @@

Comments

+ <% if !CurrentUser.user.is_builder? %> +
+

Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.

+
+ <% end %> <% if @posts.empty? %> <%= render "post_sets/blank" %> diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index 440d4d8b2..326b3e012 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -59,6 +59,9 @@
+ <% if !CurrentUser.user.is_builder? %> +

Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.

+ <% end %> <%= render "comments/partials/index/list", :comments => @post.comments.visible(CurrentUser.user), :post => @post, :show_header => false %>