Skip to content

Commit

Permalink
Move question comment form div below comments publiclab#958 (publicla…
Browse files Browse the repository at this point in the history
…b#960)

* Move question comment form div below comments

* Made sure to move ALL the div (L52-70).
  • Loading branch information
ashleypt authored and jywarren committed Nov 8, 2016
1 parent e37315a commit 7aecb92
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/views/questions/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@

<h4><span id="answer-0-comment-count"><%= @node.comments.length %></span> Comments</h4>

<div id="answer-0-comment" style="margin: 10px; padding:10px; border-radius: 5px; background-color: #eee">
<% @node.comments('ASC').each do |comment| %>
<%= render partial: "questions/comment", locals: { comment: comment, answer_id: 0 } %>
<% end %>

<div id="answer-0-comment" style="margin: 10px; padding:10px; border-radius: 5px; background-color: #eee">
<div id="answer-0-comment-section">
<% if current_user %>
<div class="inline hidden-xs" style="vertical-align: top;">
Expand All @@ -68,11 +72,6 @@
<p><a href="/login">Log in</a> to comment</p>
<% end %>
</div>

<% @node.comments('ASC').each do |comment| %>
<%= render partial: "questions/comment", locals: { comment: comment, answer_id: 0 } %>
<% end %>

</div>

<%= render :partial => "questions/answers" %>
Expand Down

0 comments on commit 7aecb92

Please sign in to comment.