2014-02-01 02:49:22 +00:00
|
|
|
{{%define "nav"%}}
|
2013-12-03 20:05:11 +00:00
|
|
|
<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-02-01 02:49:22 +00:00
|
|
|
{{%if .%}}
|
2014-01-30 21:08:14 +00:00
|
|
|
<div class="btn-group" id="navbar-dropdown">
|
2014-02-01 02:49:22 +00:00
|
|
|
<button type="button" class="btn btn-primary"><i class="fa fa-user"></i> {{%.Username%}}</button>
|
2014-01-30 21:08:14 +00:00
|
|
|
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<span class="caret" style="border-top-color:#FFFFFF"></span>
|
|
|
|
<span class="sr-only">Toggle Dropdown</span>
|
|
|
|
</button>
|
2014-02-01 02:49:22 +00:00
|
|
|
<ul class="dropdown-menu" role="menu"> <li><a href="/settings">Settings</a>
|
2014-01-30 21:08:14 +00:00
|
|
|
</li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="/logout">Logout</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-02-01 02:49:22 +00:00
|
|
|
{{%else%}}
|
2014-01-15 03:20:28 +00:00
|
|
|
<a href="/login">
|
2013-12-03 20:05:11 +00:00
|
|
|
<button type="button" class="btn btn-primary">Login</button>
|
|
|
|
</a>
|
2014-02-01 02:49:22 +00:00
|
|
|
{{%end%}}
|
2013-12-03 20:05:11 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-01 02:49:22 +00:00
|
|
|
{{%end%}}
|