mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-13 16:06:16 +01:00
Add theme selector to preferences and return the previous black theme as an alternative
This commit is contained in:
parent
2e9a0d2b4c
commit
9982217ee9
18 changed files with 64 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
class LoginController < ApplicationController
|
||||
include Common
|
||||
|
||||
layout 'login'
|
||||
skip_before_action :set_session_expiration
|
||||
skip_before_action :login_required
|
||||
before_action :login_optional
|
||||
before_action :get_current_user
|
||||
before_action :set_theme
|
||||
|
||||
protect_from_forgery :except => [:check_expiry, :login]
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ private
|
|||
:staleness_starts, :due_style, :locale, :title_date_format, :time_zone,
|
||||
:show_hidden_projects_in_sidebar, :show_project_on_todo_done,
|
||||
:review_period, :refresh, :verbose_action_descriptors,
|
||||
:mobile_todos_per_page, :sms_email, :sms_context_id)
|
||||
:mobile_todos_per_page, :sms_email, :sms_context_id, :theme)
|
||||
end
|
||||
|
||||
def user_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue