From 53ad44632e86c58082b8635916b5648f1c5005c0 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 20 Feb 2013 13:48:08 -0500 Subject: [PATCH] fix post preview border colors in comment listing --- app/assets/stylesheets/specific/posts.css.scss | 12 ++++++------ app/views/comments/index_by_post.html.erb | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index 6fff835eb..fa1e38c74 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -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; } diff --git a/app/views/comments/index_by_post.html.erb b/app/views/comments/index_by_post.html.erb index 2d6c2af67..730db3948 100644 --- a/app/views/comments/index_by_post.html.erb +++ b/app/views/comments/index_by_post.html.erb @@ -7,7 +7,7 @@ <% end %> <% @posts.each do |post| %> -
+
<%= link_to(image_tag(post.preview_file_url), post_path(post)) %>