2013-12-03 20:05:11 +00:00
|
|
|
{{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>
|
2014-01-15 03:20:28 +00:00
|
|
|
{{if .}}
|
|
|
|
<a href="/settings">
|
|
|
|
<button type="button" class="btn btn-primary"><i class="fa fa-user"></i> {{.Username}}</button>
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
<a href="/login">
|
2013-12-03 20:05:11 +00:00
|
|
|
<button type="button" class="btn btn-primary">Login</button>
|
|
|
|
</a>
|
2014-01-15 03:20:28 +00:00
|
|
|
{{end}}
|
2013-12-03 20:05:11 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|