This commit is contained in:
albert
2012-02-10 18:09:21 -05:00
parent e36483550d
commit c0bc10304c
3 changed files with 9 additions and 9 deletions

View File

@@ -5,8 +5,8 @@ div.post-previews {
}
article.post-preview {
height: 150px;
width: 150px;
height: 154px;
width: 154px;
margin-right: 20px;
margin-bottom: 20px;
float: left;
@@ -23,23 +23,23 @@ article.post-preview.blacklisted-active {
}
article.post-preview img {
border: 3px solid transparent;
border: 2px solid transparent;
}
article.post-preview.post-status-has-parent img {
border: 3px solid #CC0;
border: 2px solid #CC0;
}
article.post-preview.post-status-has-children img {
border: 3px solid #0F0;
border: 2px solid #0F0;
}
article.post-preview.post-status-pending img {
border: 3px solid #00F;
border: 2px solid #00F;
}
article.post-preview.post-status-flagged img {
border: 3px solid #F00;
border: 2px solid #F00;
}
.category-1 a {

View File

@@ -14,7 +14,7 @@ class PostPresenter < Presenter
html = %{<article class="post-preview" id="post_#{post.id}" data-id="#{post.id}" data-tags="#{h(post.tag_string)}" data-uploader="#{h(post.uploader_name)}" data-rating="#{post.rating}" data-width="#{post.image_width}" data-height="#{post.image_height}" data-flags="#{flags.join(' ')}" data-parent-id="#{post.parent_id}" data-has-children="#{post.has_children?}">}
html << %{<a href="#{path}/#{post.id}">}
if post.image_width > post.image_height
if post.image_width > post.image_height && post.image_width > 150
klass = "wide"
else
klass = "tall"

View File

@@ -15,7 +15,7 @@ Danbooru::Application.configure do
config.assets.compress = true
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = true