mirror of https://github.com/gophish/gophish
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
{{define "nav"}}
|
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<img class="navbar-logo" src="/images/logo_inv_small.png" />
|
|
<a class="navbar-brand" href="/"> gophish</a>
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li>
|
|
{{if .}}
|
|
<a href="/settings">
|
|
<button type="button" class="btn btn-primary"><i class="fa fa-user"></i> {{.Username}}</button>
|
|
</a>
|
|
{{else}}
|
|
<a href="/login">
|
|
<button type="button" class="btn btn-primary">Login</button>
|
|
</a>
|
|
{{end}}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}} |