layout changes

This commit is contained in:
albert
2013-01-06 14:26:20 -05:00
parent 61220ab3f8
commit 575f138797
3 changed files with 6 additions and 5 deletions

View File

@@ -1,9 +1,5 @@
@import "../common/000_vars.css.scss";
div.post-previews {
overflow: visible;
}
article.post-preview {
height: 154px;
width: 154px;

View File

@@ -27,6 +27,10 @@ module PostSets
end
end
def has_explicit?
posts.any? {|x| x.rating == "e"}
end
def posts
if tag_array.size > 2 && !CurrentUser.is_privileged?
raise SearchError.new("Upgrade your account to search more than two tags at once")

View File

@@ -27,6 +27,8 @@
<%= render "posts/partials/index/edit" %>
<%= render "wiki_pages/excerpt", :post_set => @post_set %>
<%= render "posts/partials/index/posts", :post_set => @post_set %>
<%= render_rss_advertisement("short", @post_set.has_explicit?) %>
</section>
<% content_for(:page_title) do %>
@@ -39,7 +41,6 @@
<%= render "posts/partials/common/secondary_links" %>
<%= render_rss_advertisement("short", @post_set.posts.any? {|x| x.rating == "e"}) %>
</div>
</div>