fix post preview border colors in comment listing
This commit is contained in:
@@ -14,27 +14,27 @@ article.post-preview {
|
||||
}
|
||||
}
|
||||
|
||||
article.post-preview.blacklisted-active {
|
||||
.post-preview.blacklisted-active {
|
||||
display: none;
|
||||
}
|
||||
|
||||
article.post-preview {
|
||||
.post-preview {
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
|
||||
article.post-preview.post-status-has-parent img {
|
||||
.post-preview.post-status-has-parent img {
|
||||
border: 2px solid #CC0;
|
||||
}
|
||||
|
||||
article.post-preview.post-status-has-children img {
|
||||
.post-preview.post-status-has-children img {
|
||||
border: 2px solid #0F0;
|
||||
}
|
||||
|
||||
article.post-preview.post-status-pending img {
|
||||
.post-preview.post-status-pending img {
|
||||
border: 2px solid #00F;
|
||||
}
|
||||
|
||||
article.post-preview.post-status-flagged img {
|
||||
.post-preview.post-status-flagged img {
|
||||
border: 2px solid #F00;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<% end %>
|
||||
|
||||
<% @posts.each do |post| %>
|
||||
<div class="post post-preview" data-tags="<%= post.tag_string %>" data-uploader="<%= post.uploader_name %>" data-rating="<%= post.rating %>" data-flags="<%= post.status %>" data-score="<%= post.score %>">
|
||||
<div class="post post-preview" data-tags="<%= post.tag_string %>" data-uploader="<%= post.uploader_name %>" data-rating="<%= post.rating %>" data-flags="<%= post.status %>" data-score="<%= post.score %>" data-parent-id="<%= post.parent_id %>" data-has-children="<%= post.has_children? %>">
|
||||
<div class="preview">
|
||||
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user