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:
evazion
2020-03-06 19:37:11 -06:00
parent 57ba5c59a4
commit 39ad0d2210
6 changed files with 6 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ class UsersController < ApplicationController
enable_auto_complete show_deleted_children
disable_categorized_saved_searches disable_tagged_filenames
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

View File

@@ -23,7 +23,7 @@ $(function() {
$("#desktop-version-link a").on("click.danbooru", async function(e) {
e.preventDefault();
await CurrentUser.update({ disable_responsive_mode: true });
await CurrentUser.update({ enable_desktop_mode: true });
location.reload();
});
});

View File

@@ -58,7 +58,7 @@ class User < ApplicationRecord
disable_cropped_thumbnails
disable_mobile_gestures
enable_safe_mode
disable_responsive_mode
enable_desktop_mode
disable_post_tooltips
enable_recommended_posts
opt_out_tracking

View File

@@ -14,7 +14,7 @@
<% end %>
<%= csrf_meta_tag %>
<% unless CurrentUser.disable_responsive_mode? %>
<% unless CurrentUser.enable_desktop_mode? %>
<meta name="viewport" content="width=device-width,initial-scale=1">
<% end %>
<% if CurrentUser.user.blacklisted_tags.present? %>

View File

@@ -13,7 +13,7 @@
<% if CurrentUser.is_member? %>
<span id="desktop-version-link" class="mobile-only">
&ndash;
<%= link_to "Disable responsive mode", edit_user_path(CurrentUser.id) %>
<%= link_to "Desktop mode", edit_user_path(CurrentUser.id) %>
</span>
<% end %>
</footer>

View File

@@ -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_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_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 :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"} %>