fix post preview border colors in comment listing

This commit is contained in:
albert
2013-02-20 13:48:08 -05:00
parent c766a1cb12
commit 53ad44632e
2 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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>