Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Logistics Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
Data Logistics Service
Commits
d35a40ad
Commit
d35a40ad
authored
1 year ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
update the navbar template to 2.7.1 style
parent
3dc11f28
No related branches found
No related tags found
1 merge request
!7
Airflow 2.7.1
Pipeline
#156082
passed
1 year ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/navbar_right.html
+90
-85
90 additions, 85 deletions
templates/navbar_right.html
with
90 additions
and
85 deletions
templates/navbar_right.html
+
90
−
85
View file @
d35a40ad
...
...
@@ -63,12 +63,14 @@
</ul>
</li>
{% if
not current_user.is_anonymous
%}
{% if
auth_manager.is_logged_in()
%}
<li
class=
"dropdown"
>
<a
class=
"dropdown-toggle"
href=
"#"
>
<span
class=
"navbar-user-icon"
title=
"{{g.user.get_full_name()}}"
>
{% if current_user.first_name and current_user.last_name %}
<span>
{{ (current_user.first_name[0] + current_user.last_name[0]).upper() }}
</span>
<span
class=
"navbar-user-icon"
title=
"{{ auth_manager.get_user_display_name() }}"
>
{% set user_display_name = auth_manager.get_user_display_name() %}
{% if user_display_name %}
{% set user_display_names = user_display_name.split(" ", 1) %}
<span>
{% for name in user_display_names %}{{ name[0].upper() }}{% endfor %}
</span>
{% else %}
<span
class=
"material-icons"
>
person
</span>
{% endif %}
...
...
@@ -76,14 +78,17 @@
<b
class=
"caret"
></b>
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"{{appbuilder.get_url_for_userinfo}}"
><span
class=
"material-icons"
>
account_circle
</span>
{{_("Your Profile")}}
</a></li>
{% set user_profile_url = auth_manager.get_url_user_profile() %}
{% if user_profile_url %}
<li><a
href=
"{{user_profile_url}}"
><span
class=
"material-icons"
>
account_circle
</span>
{{_("Your Profile")}}
</a></li>
<li
role=
"separator"
class=
"divider"
></li>
<li><a
href=
"{{appbuilder.get_url_for_logout}}"
><span
class=
"material-icons"
>
exit_to_app
</span>
{{_("Log Out")}}
</a></li>
{% endif %}
<li><a
href=
"{{auth_manager.get_url_logout()}}"
><span
class=
"material-icons"
>
exit_to_app
</span>
{{_("Log Out")}}
</a></li>
</ul>
</li>
{% else %}
<li>
<a
href=
"{{a
ppbuild
er.get_url_
for_
login}}"
><span
class=
"material-icons"
>
login
</span>
{{_("Log In")}}
</a>
<a
href=
"{{a
uth_manag
er.get_url_login
()
}}"
><span
class=
"material-icons"
>
login
</span>
{{_("Log In")}}
</a>
</li>
<li>
<a
href=
"../unity"
><span
class=
"material-icons"
>
login
</span>
{{_("Log In via SSO")}}
</a>
...
...
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