Add theme selector to preferences and return the previous black theme as an alternative

This commit is contained in:
Jyri-Petteri Paloposki 2020-08-20 02:37:55 +03:00
parent 2e9a0d2b4c
commit 9982217ee9
18 changed files with 64 additions and 22 deletions

View file

@ -7,6 +7,7 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
include LoginSystem
include Common
helper_method :current_user, :prefs, :format_date
layout proc{ |controller| controller.mobile? ? "mobile" : "application" }
@ -16,6 +17,7 @@ class ApplicationController < ActionController::Base
before_action :set_time_zone
before_action :set_zindex_counter
before_action :set_locale
before_action :set_theme
append_before_action :set_group_view_by
prepend_before_action :login_required
prepend_before_action :enable_mobile_content_negotiation