]> git.openstreetmap.org Git - rails.git/commitdiff
Show site color scheme on user preferences page
authorAnton Khorev <tony29@yandex.ru>
Sat, 16 Nov 2024 14:59:17 +0000 (17:59 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sun, 1 Dec 2024 01:39:51 +0000 (04:39 +0300)
app/views/preferences/show.html.erb
config/locales/en.yml

index 7a63d0be8dadeb57514fba42b8b139b7335cce62..4b772fba907fe051e2e86f625f04f948f8dd3ba3 100644 (file)
         <li><%= locale %></li>
       <% end %>
     </ul>
+  </dd>
 
+  <dt class="col-sm-4"><%= t ".preferred_site_color_scheme" %></dt>
+  <dd class="col-sm-8">
+    <%= t ".site_color_schemes.#{preferred_site_color_scheme}" %>
   </dd>
 </dl>
 
index 2a92fbb63c65ecf4dda142b567c35943971e4efb..fb4f23430472021a99ed458fe85d84e19d2ed36c 100644 (file)
@@ -1807,6 +1807,11 @@ en:
       title: My Preferences
       preferred_editor: Preferred Editor
       preferred_languages: Preferred Languages
+      preferred_site_color_scheme: Preferred Website Color Scheme
+      site_color_schemes:
+        auto: Auto
+        light: Light
+        dark: Dark
       edit_preferences: Edit Preferences
     edit:
       title: Edit Preferences