layout changes
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
@import "../common/000_vars.css.scss";
|
@import "../common/000_vars.css.scss";
|
||||||
|
|
||||||
div.post-previews {
|
|
||||||
overflow: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
article.post-preview {
|
article.post-preview {
|
||||||
height: 154px;
|
height: 154px;
|
||||||
width: 154px;
|
width: 154px;
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ module PostSets
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def has_explicit?
|
||||||
|
posts.any? {|x| x.rating == "e"}
|
||||||
|
end
|
||||||
|
|
||||||
def posts
|
def posts
|
||||||
if tag_array.size > 2 && !CurrentUser.is_privileged?
|
if tag_array.size > 2 && !CurrentUser.is_privileged?
|
||||||
raise SearchError.new("Upgrade your account to search more than two tags at once")
|
raise SearchError.new("Upgrade your account to search more than two tags at once")
|
||||||
|
|||||||
@@ -27,6 +27,8 @@
|
|||||||
<%= render "posts/partials/index/edit" %>
|
<%= render "posts/partials/index/edit" %>
|
||||||
<%= render "wiki_pages/excerpt", :post_set => @post_set %>
|
<%= render "wiki_pages/excerpt", :post_set => @post_set %>
|
||||||
<%= render "posts/partials/index/posts", :post_set => @post_set %>
|
<%= render "posts/partials/index/posts", :post_set => @post_set %>
|
||||||
|
|
||||||
|
<%= render_rss_advertisement("short", @post_set.has_explicit?) %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<% content_for(:page_title) do %>
|
<% content_for(:page_title) do %>
|
||||||
@@ -39,7 +41,6 @@
|
|||||||
|
|
||||||
<%= render "posts/partials/common/secondary_links" %>
|
<%= render "posts/partials/common/secondary_links" %>
|
||||||
|
|
||||||
<%= render_rss_advertisement("short", @post_set.posts.any? {|x| x.rating == "e"}) %>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user