posts: add "view original" sidebar option.

* Add a "View original" sidebar option.
* Rename the "View large" sidebar option to "View smaller".
* Remove the "Loading..." message when switching image sizes.
* Fix the V hotkey not working after using it once.
* Change #image-resize-link to .image-view-original link (note that
  there are two of these links now, one in the notice bar and one in the
  sidebar).
* Add a `data-post-current-image-size` attribute on the <body> element
  and use it to control visibility of links and notices.
This commit is contained in:
evazion
2020-03-26 04:34:15 -05:00
parent 87a51129b8
commit 1af6850c7c
6 changed files with 34 additions and 26 deletions

View File

@@ -297,7 +297,7 @@ module ApplicationHelper
can_approve_posts disable_categorized_saved_searches
disable_mobile_gestures disable_post_tooltips enable_auto_complete
enable_post_navigation enable_safe_mode hide_deleted_posts
show_deleted_children style_usernames
show_deleted_children style_usernames default_image_size
] + User::Roles.map { |role| :"is_#{role}?" }
end