Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rescheduled 🗓️
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3lingo
rescheduled 🗓️
Commits
95807b38
Verified
Commit
95807b38
authored
3 months ago
by
Felix Eckhofer
Browse files
Options
Downloads
Patches
Plain Diff
Fix dark mode for users not logged in
parent
afb3324c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/helpers/application_helper.rb
+1
-1
1 addition, 1 deletion
app/helpers/application_helper.rb
with
1 addition
and
1 deletion
app/helpers/application_helper.rb
+
1
−
1
View file @
95807b38
...
@@ -4,7 +4,7 @@ module ApplicationHelper
...
@@ -4,7 +4,7 @@ module ApplicationHelper
attributes
[
:loggedin_uid
]
=
current_user
.
id
if
user_signed_in?
attributes
[
:loggedin_uid
]
=
current_user
.
id
if
user_signed_in?
attributes
[
:is_shiftcoordinator
]
=
1
if
current_user
&
.
shiftcoordinator?
attributes
[
:is_shiftcoordinator
]
=
1
if
current_user
&
.
shiftcoordinator?
attributes
[
:languages_from
]
=
current_user
.
languages_from
unless
current_user
&
.
languages_from
.
blank?
attributes
[
:languages_from
]
=
current_user
.
languages_from
unless
current_user
&
.
languages_from
.
blank?
attributes
[
:darkmode
]
=
current_user
.
darkmode
attributes
[
:darkmode
]
=
current_user
&
.
darkmode
||
"auto"
{
data:
attributes
}
{
data:
attributes
}
end
end
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment