Move logged user information to top right

This commit is contained in:
Mia Arh
2021-03-06 16:45:22 +01:00
committed by Denis Arh
parent 92500a6f08
commit 2e88a9d5c9
2 changed files with 14 additions and 9 deletions
+5
View File
@@ -44,6 +44,11 @@ body::before {
right: 0;
}
.user {
top: 0;
right: 0;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, label, .btn, a {
font-weight: 600;
}
+9 -9
View File
@@ -1,17 +1,17 @@
{{ if .user }}
<div class="col cols-6 text-right small m-3">
Logged-in as
<a href="{{ links.Profile }}">{{ coalesce .user.Name .user.Handle .user.Email }}</a>
|
<a href="{{ links.Logout }}">Logout</a>
</div>
{{ end }}
</main>
{{ if .user }}
<div class="position-absolute user text-white m-2">
You're logged-in as
<a class="font-weight-bold text-white" href="{{ links.Profile }}">{{ coalesce .user.Name .user.Handle .user.Email }}</a>
|
<a class="font-weight-bold text-white" href="{{ links.Logout }}">Logout</a>
</div>
{{ end }}
<div class="footer col text-center position-absolute mb-4">
<a href="https://cortezaproject.org/" target="_blank" class="text-white mr-2">cortezaproject.org</a>
<a href="https://github.com/cortezaproject/" target="_blank" class="text-white ml-2">GitHub</a>
</div>
<small class="p-1 text-secondary position-absolute version">
<small class="p-1 text-secondary position-absolute version mt-2">
version {{ version }}
</small>
</body>