From bbc8797a10679b2042bea7dfaf76351c2bfbb2d6 Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 9 Mar 2013 20:25:06 -0500 Subject: [PATCH] implement blacklists for popular --- .../stylesheets/specific/posts.css.scss | 22 +++++++++++++++++++ app/views/explore/posts/_blacklists.html.erb | 5 +++++ app/views/explore/posts/popular.html.erb | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 app/views/explore/posts/_blacklists.html.erb diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index 66bb0b7e3..2dcc856f4 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -312,6 +312,28 @@ div#c-explore-posts { margin-left: 0; } } + + #blacklist-box { + margin-bottom: 1em; + } + + #blacklist-list { + display: inline; + } + + #blacklist-list li { + display: inline; + margin-right: 1em; + + a { + color: $link_color; + cursor: pointer; + } + + span { + color: #AAA; + } + } } div#unapprove-dialog { diff --git a/app/views/explore/posts/_blacklists.html.erb b/app/views/explore/posts/_blacklists.html.erb new file mode 100644 index 000000000..57c9fef12 --- /dev/null +++ b/app/views/explore/posts/_blacklists.html.erb @@ -0,0 +1,5 @@ +
+ Blacklisted: + +
diff --git a/app/views/explore/posts/popular.html.erb b/app/views/explore/posts/popular.html.erb index 52e1bfa98..1b8958839 100644 --- a/app/views/explore/posts/popular.html.erb +++ b/app/views/explore/posts/popular.html.erb @@ -4,6 +4,8 @@ <%= render "date_explore", :post_set => @post_set %> + <%= render "blacklists" %> + <%= @post_set.presenter.post_previews_html(self) %>