add toggle for testing cropped thumbnails

This commit is contained in:
r888888888
2017-09-06 17:02:43 -07:00
parent 599f2a59fe
commit 63f7edd0c6
4 changed files with 8 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ class PostPresenter < Presenter
tag_param = nil
end
html << %{<a href="#{path}/#{post.id}#{tag_param}">}
html << %{<img itemprop="thumbnailUrl" src="#{post.preview_file_url}" alt="#{h(post.tag_string)}">}
html << %{<img class="cropped-#{CurrentUser.cropped_thumbnails?}" itemprop="thumbnailUrl" src="#{post.preview_file_url}" alt="#{h(post.tag_string)}">}
html << %{</a>}
if options[:pool]