Renaming class. Topic show: Added author_info.
This commit is contained in:
committed by
taitus
parent
11f6515e84
commit
e5fb90f954
@@ -1,13 +1,20 @@
|
||||
<% cache [locale_and_user_status, @current_order, commentable_cache_key(@topic), @comment_tree.comments, @comment_tree.comment_authors, @topic.comments_count, @comment_flags] do %>
|
||||
<div class="row comments">
|
||||
|
||||
<div id="comments" class="small-12 column">
|
||||
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>
|
||||
<!-- <p class="first-comment"><%= @topic.description_as_comment %></p> -->
|
||||
<% @comment_tree.root_comments.each do |comment| %>
|
||||
|
||||
<%= render 'comments/comment', comment: comment %>
|
||||
<% end %>
|
||||
|
||||
<%= paginate @comment_tree.root_comments %>
|
||||
|
||||
<% if user_signed_in? %>
|
||||
<%= render 'comments/form', {commentable: @topic, parent_id: nil, toggeable: false} %>
|
||||
<% else %>
|
||||
<br>
|
||||
|
||||
<div data-alert class="callout primary">
|
||||
<%= t("topics.show.login_to_comment",
|
||||
signin: link_to(t("votes.signin"), new_user_session_path),
|
||||
@@ -15,10 +22,6 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% @comment_tree.root_comments.each do |comment| %>
|
||||
<%= render 'comments/comment', comment: comment %>
|
||||
<% end %>
|
||||
<%= paginate @comment_tree.root_comments %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user