users: add dark mode account setting (fix #4158).

This commit is contained in:
evazion
2019-09-19 13:20:06 -05:00
parent ca4cba7635
commit bf51d68f15
6 changed files with 20 additions and 11 deletions

View File

@@ -174,7 +174,7 @@ module ApplicationHelper
end
def body_attributes(user = CurrentUser.user)
attributes = [:id, :name, :level, :level_string, :can_approve_posts?, :can_upload_free?]
attributes = [:id, :name, :level, :level_string, :theme, :can_approve_posts?, :can_upload_free?]
attributes += User::Roles.map { |role| :"is_#{role}?" }
controller_param = params[:controller].parameterize.dasherize