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">
|
|
|
|
|
2015-06-15 21:49:16 +00:00
|
|
|
<title>Gophish - {{ .Title }}</title>
|
2013-12-03 20:05:11 +00:00
|
|
|
|
|
|
|
<!-- Bootstrap core CSS -->
|
2014-05-27 01:29:12 +00:00
|
|
|
<!-- <link href="/css/bootstrap.css" rel="stylesheet"> -->
|
|
|
|
<link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
|
2013-12-03 20:05:11 +00:00
|
|
|
<!-- Custom styles for this template -->
|
|
|
|
<link href="/css/main.css" rel="stylesheet">
|
2014-05-27 01:29:12 +00:00
|
|
|
<link href="/css/dashboard.css" rel="stylesheet">
|
|
|
|
<link href="/css/flat-ui.css" rel="stylesheet">
|
2015-06-16 03:51:18 +00:00
|
|
|
<link href="/css/dataTables.bootstrap.css" rel="stylesheet">
|
2013-12-03 20:05:11 +00:00
|
|
|
<link href="/css/font-awesome.min.css" rel="stylesheet">
|
|
|
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans: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">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<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">
|
2014-05-29 06:01:22 +00:00
|
|
|
<li><a href="#/">Dashboard</a>
|
|
|
|
</li>
|
2014-06-21 17:19:49 +00:00
|
|
|
<li><a href="#/campaigns">Campaigns</a>
|
|
|
|
</li>
|
2014-05-29 06:01:22 +00:00
|
|
|
<li><a href="#/users">Users & Groups</a>
|
|
|
|
</li>
|
2015-02-07 02:24:10 +00:00
|
|
|
<li><a href="#/templates">Email Templates</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="#/landing_pages">Landing Pages</a>
|
2014-05-29 06:01:22 +00:00
|
|
|
</li>
|
|
|
|
<li><a href="#/settings">Settings</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="/api/">API Documentation</a>
|
|
|
|
</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-06-15 21:49:16 +00:00
|
|
|
<button type="button" class="btn btn-primary"><i class="fa fa-user"></i> {{.User.Username}}</button>
|
2014-05-27 01:29:12 +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>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
<li><a href="#/settings">Settings</a>
|
|
|
|
</li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="/logout">Logout</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{else}}
|
2014-05-27 01:29:12 +00:00
|
|
|
<a href="/login">
|
|
|
|
<button type="button" class="btn btn-primary">Login</button>
|
|
|
|
</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 -->
|
|
|
|
<script src="/js/jquery.js"></script>
|
|
|
|
<script src="/js/bootstrap.min.js"></script>
|
2015-06-16 03:51:18 +00:00
|
|
|
<script src="/js/jquery.dataTables.min.js"></script>
|
|
|
|
<script src="/js/dataTables.bootstrap.js"></script>
|
2015-06-15 21:49:16 +00:00
|
|
|
<!--<script src="/js/angular-file-upload-shim.min.js"></script>
|
2014-02-01 02:49:22 +00:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.min.js"></script>
|
2014-05-27 01:29:12 +00:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular-route.js"></script>
|
2015-06-16 03:51:18 +00:00
|
|
|
<script src="/js/angular-file-upload.min.js"></script>
|
|
|
|
<script src="/js/ui-bootstrap-0.10.0.min.js"></script>-->
|
2015-06-15 21:49:16 +00:00
|
|
|
<!--<script src="/js/ng-resource.min.js"></script>
|
|
|
|
<script src="/js/ng-table.min.js"></script>-->
|
2014-06-11 23:23:16 +00:00
|
|
|
<script src="/js/highcharts.min.js"></script>
|
2015-06-16 03:51:18 +00:00
|
|
|
<!--<script src="/js/highcharts-ng.js"></script>
|
|
|
|
<script src="/js/app/app.js"></script>
|
2014-05-27 01:29:12 +00:00
|
|
|
<script src="/js/app/controllers.js"></script>
|
2015-06-15 21:49:16 +00:00
|
|
|
<script src="/js/app/factories.js"></script>-->
|
2015-02-13 04:21:50 +00:00
|
|
|
<script src="/js/ckeditor/ckeditor.js"></script>
|
2015-06-16 03:51:18 +00:00
|
|
|
<script src="/js/gophish.js"></script>
|
|
|
|
{{template "scripts" .}}
|
2015-06-15 21:49:16 +00:00
|
|
|
<!--<script src="/js/ng-ckeditor.js"></script>-->
|
2014-07-08 04:02:40 +00:00
|
|
|
<script>
|
|
|
|
Highcharts.setOptions({
|
|
|
|
global: {
|
|
|
|
timezoneOffset: 5 * 60
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2013-12-03 20:05:11 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
2015-06-15 21:49:16 +00:00
|
|
|
{{ end }}
|