themes/sourcehut: display username in navbar
This commit is contained in:
parent
73d54ca35c
commit
2733dcd528
8 changed files with 29 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
{{template "head.html"}}
|
||||
{{template "nav.html"}}
|
||||
{{template "nav.html" .Global}}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{template "head.html"}}
|
||||
{{template "nav.html"}}
|
||||
{{template "nav.html" .Global}}
|
||||
|
||||
{{$fn := .AddressObject.Card.Value "FN"}}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{template "head.html"}}
|
||||
{{template "nav.html"}}
|
||||
{{template "nav.html" .Global}}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
{{template "head.html"}}
|
||||
<nav class="container navbar navbar-light navbar-expand-sm">
|
||||
<div class="col-md-12">
|
||||
<a class="navbar-brand" href="/">
|
||||
koushin
|
||||
<span class="text-danger">webmail</span>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
{{template "nav.html" .Global}}
|
||||
|
||||
<div class="container">
|
||||
<form method="post" action="/login" class="col-md-6">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{template "head.html"}}
|
||||
{{template "nav.html"}}
|
||||
{{template "nav.html" .Global}}
|
||||
|
||||
<!-- TODO: Share tabs if reasonable -->
|
||||
<div class="container-fluid">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{template "head.html"}}
|
||||
{{template "nav.html"}}
|
||||
{{template "nav.html" .Global}}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
koushin
|
||||
<span class="text-danger">mail</span>
|
||||
</a>
|
||||
{{if .LoggedIn}}
|
||||
<ul class="navbar-nav mr-auto d-none d-sm-flex">
|
||||
<li class="nav-item active">
|
||||
<a href="/" class="nav-link">mail</a>
|
||||
|
@ -18,9 +19,11 @@
|
|||
</ul>
|
||||
<div class="login">
|
||||
<span class="navbar-text">
|
||||
Logged in as {{.Username}} —
|
||||
<a href="/settings">Settings</a>
|
||||
—
|
||||
<a href="/logout">Log out</a>
|
||||
</span>
|
||||
</div>
|
||||
{{end}}
|
||||
</nav>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{template "head.html"}}
|
||||
{{template "nav.html"}}
|
||||
{{template "nav.html" .Global}}
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue