Better convey access to reply to comments/forums

This commit is contained in:
Kira 2020-01-02 14:49:35 -08:00
parent 321ddd92fc
commit c6081ffd70
3 changed files with 5 additions and 1 deletions

View File

@ -28,5 +28,7 @@
<p><%= link_to "Post comment", new_comment_path(comment: { post_id: post.id }), :class => "expand-comment-response" %></p>
<%= render "comments/form", comment: post.comments.new, hidden: true %>
</div>
<% else %>
<h5 id="respond-link"><%= link_to "Login to respond &raquo;".html_safe, new_session_path %></h5>
<% end %>
</div>

View File

@ -30,6 +30,8 @@
<%= render "forum_posts/partials/new/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
</div>
<% end %>
<% elsif !@forum_topic.is_locked? %>
<h5 id="respond-link"><%= link_to "Login to respond &raquo;".html_safe, new_session_path %></h5>
<% end %>
<%= numbered_paginator(@forum_posts) %>

View File

@ -141,7 +141,7 @@
</menu>
<section id="comments">
<% if !CurrentUser.user.is_janitor? %>
<% if !CurrentUser.is_anonymous? && !CurrentUser.user.is_janitor? %>
<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 %>