Add user_color_scheme_class helper
This commit is contained in:
parent
c4f3c54ecb
commit
184a9ecaf6
3 changed files with 8 additions and 6 deletions
|
@ -126,6 +126,10 @@ module ApplicationHelper
|
|||
Gitlab::Theme.css_class_by_id(current_user.try(:theme_id))
|
||||
end
|
||||
|
||||
def user_color_scheme_class
|
||||
current_user.dark_scheme ? :black : :white
|
||||
end
|
||||
|
||||
def show_last_push_widget?(event)
|
||||
event &&
|
||||
event.last_push_to_non_root? &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue