2015-06-15 21:49:16 +00:00
|
|
|
{{ define "base" }}
|
2013-12-03 20:05:11 +00:00
|
|
|
<!DOCTYPE html>
|
2015-06-15 21:49:16 +00:00
|
|
|
<html lang="en">
|
2013-12-03 20:05:11 +00:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2015-06-15 21:49:16 +00:00
|
|
|
<meta name="description" content="Gophish - Phishing Toolkit">
|
2014-05-27 01:29:12 +00:00
|
|
|
<meta name="author" content="Jordan Wright (http://github.com/jordan-wright)">
|
2013-12-03 20:05:11 +00:00
|
|
|
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
|
|
|
|
|
2016-03-10 00:17:46 +00:00
|
|
|
<title>{{ .Title }} - Gophish</title>
|
2013-12-03 20:05:11 +00:00
|
|
|
|
2017-01-08 20:35:08 +00:00
|
|
|
<link href="/css/dist/gophish.css" rel="stylesheet" type="text/css">
|
2015-09-26 00:49:40 +00:00
|
|
|
<link href='https://fonts.googleapis.com/css?family=Roboto:700,500' rel='stylesheet' type='text/css'>
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,600,700' rel='stylesheet' type='text/css'>
|
2014-05-27 01:29:12 +00:00
|
|
|
<script>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{if .User}}
|
2014-05-27 01:29:12 +00:00
|
|
|
var user = {
|
2015-06-15 21:49:16 +00:00
|
|
|
api_key : {{ .User.ApiKey }},
|
|
|
|
username : {{ .User.Username }}
|
2014-05-27 01:29:12 +00:00
|
|
|
}
|
2015-06-15 21:49:16 +00:00
|
|
|
{{end}}
|
|
|
|
{{if .Token}}
|
|
|
|
var csrf_token = {{.Token}}
|
|
|
|
{{end}}
|
2014-05-27 01:29:12 +00:00
|
|
|
</script>
|
2013-12-03 20:05:11 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2014-05-27 01:29:12 +00:00
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
2017-02-13 12:07:08 +00:00
|
|
|
<span class="sr-only">{{T "Toggle navigation"}}</span>
|
2014-05-27 01:29:12 +00:00
|
|
|
<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">
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/">{{T "Dashboard"}}</a>
|
2014-05-29 06:01:22 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/campaigns">{{T "Campaigns"}}</a>
|
2014-06-21 17:19:49 +00:00
|
|
|
</li>
|
2017-02-14 18:18:55 +00:00
|
|
|
<li><a href="/users">{{T "Users & Groups"}}</a>
|
2014-05-29 06:01:22 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/templates">{{T "Email Templates"}}</a>
|
2015-02-07 02:24:10 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/landing_pages">{{T "Landing Pages"}}</a>
|
2014-05-29 06:01:22 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/sending_profiles">{{T "Sending Profiles"}}</a>
|
2014-05-29 06:01:22 +00:00
|
|
|
</li>
|
2017-02-13 12:07:08 +00:00
|
|
|
<li><a href="/settings">{{T "Settings"}}</a>
|
2014-05-29 06:01:22 +00:00
|
|
|
</li>
|
2014-05-27 01:29:12 +00:00
|
|
|
<li>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{if .User}}
|
2014-05-27 01:29:12 +00:00
|
|
|
<div class="btn-group" id="navbar-dropdown">
|
2015-07-28 00:44:10 +00:00
|
|
|
<a class="btn btn-primary" href="/settings"><i class="fa fa-user"></i> {{.User.Username}}</a>
|
|
|
|
<a class="btn btn-primary dropdown-toggle" href="/logout">
|
|
|
|
<i class="fa fa-sign-out"></i>
|
|
|
|
</a>
|
2014-05-27 01:29:12 +00:00
|
|
|
</div>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{else}}
|
2014-05-27 01:29:12 +00:00
|
|
|
<a href="/login">
|
2017-02-13 12:07:08 +00:00
|
|
|
<button type="button" class="btn btn-primary">{{T "Login"}}</button>
|
2014-05-27 01:29:12 +00:00
|
|
|
</a>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{end}}
|
2014-05-27 01:29:12 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-12-09 06:35:07 +00:00
|
|
|
</div>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{template "body" .}}
|
2013-12-03 20:05:11 +00:00
|
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
2017-01-08 20:35:08 +00:00
|
|
|
<script src="/js/dist/vendor.min.js"></script>
|
|
|
|
<script src="/js/dist/app/gophish.min.js"></script>
|
2017-02-13 12:07:08 +00:00
|
|
|
<script src="/js/src/app/localization.support.js"></script>
|
2015-06-16 03:51:18 +00:00
|
|
|
{{template "scripts" .}}
|
2013-12-03 20:05:11 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{ end }}
|