settings: rename "disable responsive mode" to "enable desktop mode"
Desktop mode is a better description. Most users don't know what responsive mode means.
This commit is contained in:
@@ -120,7 +120,7 @@ class UsersController < ApplicationController
|
|||||||
enable_auto_complete show_deleted_children
|
enable_auto_complete show_deleted_children
|
||||||
disable_categorized_saved_searches disable_tagged_filenames
|
disable_categorized_saved_searches disable_tagged_filenames
|
||||||
disable_cropped_thumbnails disable_mobile_gestures
|
disable_cropped_thumbnails disable_mobile_gestures
|
||||||
enable_safe_mode disable_responsive_mode disable_post_tooltips
|
enable_safe_mode enable_desktop_mode disable_post_tooltips
|
||||||
]
|
]
|
||||||
|
|
||||||
permitted_params << :name if context == :create
|
permitted_params << :name if context == :create
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ $(function() {
|
|||||||
|
|
||||||
$("#desktop-version-link a").on("click.danbooru", async function(e) {
|
$("#desktop-version-link a").on("click.danbooru", async function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
await CurrentUser.update({ disable_responsive_mode: true });
|
await CurrentUser.update({ enable_desktop_mode: true });
|
||||||
location.reload();
|
location.reload();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class User < ApplicationRecord
|
|||||||
disable_cropped_thumbnails
|
disable_cropped_thumbnails
|
||||||
disable_mobile_gestures
|
disable_mobile_gestures
|
||||||
enable_safe_mode
|
enable_safe_mode
|
||||||
disable_responsive_mode
|
enable_desktop_mode
|
||||||
disable_post_tooltips
|
disable_post_tooltips
|
||||||
enable_recommended_posts
|
enable_recommended_posts
|
||||||
opt_out_tracking
|
opt_out_tracking
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= csrf_meta_tag %>
|
<%= csrf_meta_tag %>
|
||||||
<% unless CurrentUser.disable_responsive_mode? %>
|
<% unless CurrentUser.enable_desktop_mode? %>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if CurrentUser.user.blacklisted_tags.present? %>
|
<% if CurrentUser.user.blacklisted_tags.present? %>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<% if CurrentUser.is_member? %>
|
<% if CurrentUser.is_member? %>
|
||||||
<span id="desktop-version-link" class="mobile-only">
|
<span id="desktop-version-link" class="mobile-only">
|
||||||
–
|
–
|
||||||
<%= link_to "Disable responsive mode", edit_user_path(CurrentUser.id) %>
|
<%= link_to "Desktop mode", edit_user_path(CurrentUser.id) %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
<%= f.input :disable_mobile_gestures, :as => :select, :hint => "Disable swipe left / swipe right gestures on mobile", :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
<%= f.input :disable_mobile_gestures, :as => :select, :hint => "Disable swipe left / swipe right gestures on mobile", :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
||||||
<%= f.input :disable_post_tooltips, :as => :select, :hint => "Disable advanced tooltips when hovering over thumbnails", :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
<%= f.input :disable_post_tooltips, :as => :select, :hint => "Disable advanced tooltips when hovering over thumbnails", :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
||||||
<%= f.input :disable_cropped_thumbnails, :as => :select, :hint => "Disable cropped (square) thumbnails on mobile", :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
<%= f.input :disable_cropped_thumbnails, :as => :select, :hint => "Disable cropped (square) thumbnails on mobile", :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false %>
|
||||||
<%= f.input :disable_responsive_mode, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false, :hint => "Disable alternative layout for mobile and tablet" %>
|
<%= f.input :enable_desktop_mode, :as => :select, :collection => [["No", "false"], ["Yes", "true"]], :include_blank => false, :hint => "Use the desktop layout on mobile" %>
|
||||||
|
|
||||||
<%= f.input :favorite_tags, :label => "Frequent tags", :hint => "A list of tags that you use often. They will appear when using the list of Related Tags.", :input_html => { :rows => 5, :data => { :autocomplete => "tag-query" } } %>
|
<%= f.input :favorite_tags, :label => "Frequent tags", :hint => "A list of tags that you use often. They will appear when using the list of Related Tags.", :input_html => { :rows => 5, :data => { :autocomplete => "tag-query" } } %>
|
||||||
<%= f.input :custom_style, :label => "Custom <a href='https://en.wikipedia.org/wiki/Cascading_Style_Sheets'>CSS</a> style".html_safe, :hint => "CSS rules to apply to the whole site.", :input_html => {:size => "40x5"} %>
|
<%= f.input :custom_style, :label => "Custom <a href='https://en.wikipedia.org/wiki/Cascading_Style_Sheets'>CSS</a> style".html_safe, :hint => "CSS rules to apply to the whole site.", :input_html => {:size => "40x5"} %>
|
||||||
|
|||||||
Reference in New Issue
Block a user