Add V keyboard shortcut for toggling original/sample size
This commit is contained in:
@@ -59,8 +59,9 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if post.has_large? && CurrentUser.default_image_size == "large" %>
|
||||
<div class="ui-corner-all ui-state-highlight notice notice-resized" id="image-resize-notice">
|
||||
Resized to <%= number_to_percentage post.resize_percentage.floor, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>)
|
||||
<% if post.has_large? %>
|
||||
<div class="ui-corner-all ui-state-highlight notice notice-resized" id="image-resize-notice" style="<%= CurrentUser.default_image_size == "original" ? "display: none;" : "" %>">
|
||||
<span>Resized to <%= number_to_percentage post.resize_percentage.floor, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>)</span>
|
||||
<span style="display: none;">Loading...</span>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user