The same as #5337 but stores the preferred color scheme value in user 
preferences db table instead of cookies.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5339

-- Commit Summary --

  * Add auto/light color scheme stylesheets depending on user preferences
  * Show color scheme on user preferences page
  * Add color scheme select to preferences form
  * Store selected color scheme

-- File Changes --

    M app/assets/stylesheets/parameters.scss (1)
    A app/assets/stylesheets/screen-auto-ltr.scss (3)
    A app/assets/stylesheets/screen-auto-rtl.rtlcss.scss (3)
    A app/assets/stylesheets/screen-light-ltr.scss (3)
    A app/assets/stylesheets/screen-light-rtl.rtlcss.scss (3)
    D app/assets/stylesheets/screen-ltr.scss (1)
    D app/assets/stylesheets/screen-rtl.rtlcss.scss (1)
    M app/controllers/preferences_controller.rb (6)
    M app/views/layouts/_head.html.erb (6)
    M app/views/preferences/edit.html.erb (8)
    M app/views/preferences/show.html.erb (8)
    M config/locales/en.yml (4)
    M test/controllers/preferences_controller_test.rb (22)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5339.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5339.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5339
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to