Move logged user information to top right
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user