css: unify comment and forum post css.
Unify comments and forum posts to have the same CSS and HTML structure. Fixes various minor spacing and styling inconsistencies.
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
<%= render "comments/partials/index/header", :post => post %>
|
||||
<% end %>
|
||||
|
||||
<div class="row notices">
|
||||
<% if post.comments.hidden(CurrentUser.user).any? || (page == :comments && post.comments.size > 6) %>
|
||||
<% if post.comments.hidden(CurrentUser.user).any? || (page == :comments && post.comments.size > 6) %>
|
||||
<div class="row hidden-comments-notice">
|
||||
<span class="info" id="threshold-comments-notice-for-<%= post.id %>">
|
||||
<%= link_to "Show #{pluralize post.comments.hidden(CurrentUser.user).size, "hidden comment"}", comments_path(post_id: post.id), id: "show-all-comments-link", remote: true %>
|
||||
</span>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="list-of-comments">
|
||||
<% if comments.present? %>
|
||||
|
||||
@@ -12,22 +12,19 @@
|
||||
data-below-threshold="<%= comment.score < CurrentUser.user.comment_threshold %>"
|
||||
data-is-voted="<%= comment.voted_by?(CurrentUser.user) %>">
|
||||
<div class="author">
|
||||
<h1>
|
||||
<h4>
|
||||
<%= link_to_user comment.creator %>
|
||||
<% if comment.is_deleted? %>
|
||||
(deleted)
|
||||
<% end %>
|
||||
</h1>
|
||||
<p>
|
||||
<%= time_ago_in_words_tagged(comment.created_at) %>
|
||||
</p>
|
||||
</h4>
|
||||
<%= time_ago_in_words_tagged(comment.created_at) %>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="body prose">
|
||||
<%= format_text(comment.body) %>
|
||||
|
||||
<%= render "application/update_notice", record: comment %>
|
||||
</div>
|
||||
<%= render "application/update_notice", record: comment %>
|
||||
|
||||
<% if CurrentUser.is_member? %>
|
||||
<menu>
|
||||
|
||||
Reference in New Issue
Block a user