]> git.openstreetmap.org Git - rails.git/commitdiff
Show map color scheme on user preferences page
authorAnton Khorev <tony29@yandex.ru>
Sun, 1 Dec 2024 01:00:25 +0000 (04:00 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sun, 1 Dec 2024 01:58:00 +0000 (04:58 +0300)
app/views/preferences/show.html.erb
config/locales/en.yml

index 7681638ed95057f5e9092fb326ebaf5113bc1c30..9bf83cbf1f0f72b846e3c43bbac278703fcef61a 100644 (file)
   <dd class="col-sm-8">
     <%= t ".site_color_schemes.#{preferred_color_scheme(:site)}" %>
   </dd>
+
+  <dt class="col-sm-4"><%= t ".preferred_map_color_scheme" %></dt>
+  <dd class="col-sm-8">
+    <%= t ".map_color_schemes.#{preferred_color_scheme(:map)}" %>
+  </dd>
 </dl>
 
 <div>
index fb4f23430472021a99ed458fe85d84e19d2ed36c..770e8e40ac09faa4235437495012fc99fb6b00bf 100644 (file)
@@ -1812,6 +1812,11 @@ en:
         auto: Auto
         light: Light
         dark: Dark
+      preferred_map_color_scheme: Preferred Map Color Scheme
+      map_color_schemes:
+        auto: Auto
+        light: Light
+        dark: Dark
       edit_preferences: Edit Preferences
     edit:
       title: Edit Preferences