temp fix for flash thumbnails
This commit is contained in:
@@ -9,7 +9,7 @@ div#page {
|
|||||||
margin: 0 30px;
|
margin: 0 30px;
|
||||||
|
|
||||||
aside#sidebar {
|
aside#sidebar {
|
||||||
width: 15em;
|
width: 20%;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
@@ -30,7 +30,7 @@ div#page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
section#content {
|
section#content {
|
||||||
width: 65em;
|
width: 75%;
|
||||||
float: left;
|
float: left;
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|||||||
@@ -13,6 +13,15 @@ article.post-preview {
|
|||||||
float: left;
|
float: left;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
|
span.text-post-preview {
|
||||||
|
border: 1px solid #666;
|
||||||
|
height: 150px;
|
||||||
|
width: 150px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
article.post-preview.blacklisted-active {
|
article.post-preview.blacklisted-active {
|
||||||
|
|||||||
@@ -7,7 +7,15 @@ 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(' ')}">}
|
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(' ')}">}
|
||||||
html << %{<a href="/posts/#{post.id}">}
|
html << %{<a href="/posts/#{post.id}">}
|
||||||
html << %{<img src="#{post.preview_file_url}">}
|
|
||||||
|
if post.is_image?
|
||||||
|
html << %{<img src="#{post.preview_file_url}">}
|
||||||
|
elsif post.is_flash?
|
||||||
|
html << '<span class="text-post-preview">Flash</span>'
|
||||||
|
else
|
||||||
|
html << '<span class="text-post-preview">Download</span>'
|
||||||
|
end
|
||||||
|
|
||||||
html << %{</a>}
|
html << %{</a>}
|
||||||
html << %{</article>}
|
html << %{</article>}
|
||||||
html.html_safe
|
html.html_safe
|
||||||
|
|||||||
Reference in New Issue
Block a user