Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
e4720e7c
Commit
e4720e7c
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
put the login block to the top right of the screen
Former-commit-id: c0e9c8f9c4bb4f6357211b1aac2e0b654d0bd743
parent
e06baebe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/templates/base.html
+10
-7
10 additions, 7 deletions
ippisite/ippidb/templates/base.html
with
10 additions
and
7 deletions
ippisite/ippidb/templates/base.html
+
10
−
7
View file @
e4720e7c
...
@@ -160,7 +160,6 @@
...
@@ -160,7 +160,6 @@
};
};
};
};
</script>
</script>
</head>
</head>
<body>
<body>
...
@@ -173,6 +172,16 @@
...
@@ -173,6 +172,16 @@
</a>
</a>
</div>
<!-- /.container-fluid -->
</div>
<!-- /.container-fluid -->
</div>
</div>
<nav
class=
"fixed-top"
>
<ul
class=
"nav justify-content-end"
>
{% if user.is_authenticated %}{{ user.perms }}
<li><i
class=
"fas fa-user-circle"
></i>
{{ user.username }}
<a
class=
"ml-2"
href=
"{% url 'logout' %}"
>
logout
</a></li>
{% else %}
<li><a
href=
"/accounts/login/"
><i
class=
"fas fa-user-circle mr-2"
title=
"Login"
></i>
LOGIN
</a></li>
{% endif %}
</ul>
</nav>
</nav>
<div
id=
"mainnav"
>
<div
id=
"mainnav"
>
<nav
class=
"main-nav"
>
<nav
class=
"main-nav"
>
<div>
<div>
...
@@ -192,12 +201,6 @@
...
@@ -192,12 +201,6 @@
<li>
<li>
<a
href=
"/admin-session"
>
Admin
</a>
<a
href=
"/admin-session"
>
Admin
</a>
</li>
</li>
{% if user.is_authenticated %}
<li>
Welcome {{ user.username }} !!!
<a
href=
"{% url 'logout' %}"
>
logout
</a></li>
{% else %}
<li><a
href=
"{% provider_login_url 'github' %}"
><i
class=
"fab fa-github"
title=
"Login with github"
></i>
Login with GitHub
</a></li>
<li><a
href=
"{% provider_login_url 'orcid' %}"
><i
class=
"ai ai-orcid"
title=
"Login with ORCID"
></i>
Login with ORCID
</a></li>
{% endif %}
</ul>
</ul>
</div>
</div>
</nav>
</nav>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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