Added a view large link to facilitate switching between image sizes

- The link is placed in the Options section
-- In the same place as the now defunct "Resize to image" link
-- This was so that it doesn't interfere with the image when in full size
This commit is contained in:
BrokenEagle
2020-03-03 20:48:13 +00:00
parent e844a06e61
commit a206c9d6ac
2 changed files with 32 additions and 16 deletions

View File

@@ -1,4 +1,9 @@
<ul>
<% if post.visible? && post.has_large? && !post.is_ugoira? %>
<li id="post-option-view-large" style="<%= CurrentUser.default_image_size == "original" ? "" : "display: none;" %>">
<%= link_to "View large", post.tagged_large_file_url, id: "image-view-large-link" %>
</li>
<% end %>
<li id="post-option-find-similar">
<%= link_to "Find similar", iqdb_queries_path(post_id: post.id) %>
</li>