This commit is contained in:
albert
2012-02-10 18:21:16 -05:00
parent 12956fe5c8
commit a5c839a0db

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 && post.image_width > Danbooru.config.small_image_width
if post.image_width > post.image_height && post.image_width > Danbooru.config.small_image_width && !post.is_flash?
klass = "wide"
else
klass = "tall"