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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3lingo
rescheduled 🗓️
Commits
793abf82
Verified
Commit
793abf82
authored
4 months ago
by
tribut
Browse files
Options
Downloads
Patches
Plain Diff
Order "admin" before "logout"
This makes it consistent with the mobile navigation.
parent
27ab09e3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/layouts/application.html.erb
+32
-33
32 additions, 33 deletions
app/views/layouts/application.html.erb
with
32 additions
and
33 deletions
app/views/layouts/application.html.erb
+
32
−
33
View file @
793abf82
...
@@ -55,11 +55,10 @@
...
@@ -55,11 +55,10 @@
<%=
link_to
user_assignments_path
(
current_user
),
class:
"text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white"
do
%>
<%=
link_to
user_assignments_path
(
current_user
),
class:
"text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white"
do
%>
<span>
My Assignments
</span>
<span>
My Assignments
</span>
<%
end
%>
<%
end
%>
<%=
link_to
"Logout"
,
destroy_user_session_path
,
data:
{
turbo_method: :delete
},
class:
"text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white"
%>
<%
if
current_user
.
has_role?
(
"admin"
)
||
current_user
.
has_role?
(
"events_admin"
)
%>
<%
if
current_user
.
has_role?
(
"admin"
)
||
current_user
.
has_role?
(
"events_admin"
)
%>
<%=
link_to
"Admin"
,
admin_root_path
,
class:
"text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white"
%>
<%=
link_to
"Admin"
,
admin_root_path
,
class:
"text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white"
%>
<%
end
%>
<%
end
%>
<%=
link_to
"Logout"
,
destroy_user_session_path
,
data:
{
turbo_method: :delete
},
class:
"text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white"
%>
</div>
</div>
<!-- User avatar always visible -->
<!-- User avatar always visible -->
...
...
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