post tooltips: add disable option (#3689).
* Add "disable post tooltips" account setting. * Add back title attribute for when fancy tooltips are disabled.
This commit is contained in:
@@ -40,7 +40,8 @@ class PostPresenter < Presenter
|
||||
src = post.preview_file_url
|
||||
end
|
||||
|
||||
html << %{<img itemprop="thumbnailUrl" src="#{src}" alt="#{h(post.tag_string)}">}
|
||||
tooltip = "#{post.tag_string} rating:#{post.rating} score:#{post.score}"
|
||||
html << %{<img itemprop="thumbnailUrl" src="#{src}" title="#{h(tooltip)}" alt="#{h(post.tag_string)}">}
|
||||
html << %{</a>}
|
||||
|
||||
if options[:pool]
|
||||
|
||||
Reference in New Issue
Block a user