mirror of https://github.com/gophish/gophish
102 lines
4.1 KiB
HTML
102 lines
4.1 KiB
HTML
{{ define "base" }}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<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">
|
|
<meta name="description" content="Gophish - Phishing Toolkit">
|
|
<meta name="author" content="Jordan Wright (http://github.com/jordan-wright)">
|
|
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
|
|
|
|
<title>Gophish - {{ .Title }}</title>
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
<!-- <link href="/css/bootstrap.css" rel="stylesheet"> -->
|
|
<link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
|
|
<!-- Custom styles for this template -->
|
|
<link href="/css/main.css" rel="stylesheet">
|
|
<link href="/css/dashboard.css" rel="stylesheet">
|
|
<link href="/css/flat-ui.css" rel="stylesheet">
|
|
<link href="/css/dataTables.bootstrap.css" rel="stylesheet">
|
|
<link href="/css/font-awesome.min.css" rel="stylesheet">
|
|
<link href="/css/chartist.min.css" rel="stylesheet">
|
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
|
|
<script>
|
|
{{if .User}}
|
|
var user = {
|
|
api_key : {{ .User.ApiKey }},
|
|
username : {{ .User.Username }}
|
|
}
|
|
{{end}}
|
|
{{if .Token}}
|
|
var csrf_token = {{.Token}}
|
|
{{end}}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<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">
|
|
<li><a href="/">Dashboard</a>
|
|
</li>
|
|
<li><a href="/campaigns">Campaigns</a>
|
|
</li>
|
|
<li><a href="/users">Users & Groups</a>
|
|
</li>
|
|
<li><a href="/templates">Email Templates</a>
|
|
</li>
|
|
<li><a href="/landing_pages">Landing Pages</a>
|
|
</li>
|
|
<li><a href="/settings">Settings</a>
|
|
</li>
|
|
<li><a href="/api/">API Documentation</a>
|
|
</li>
|
|
<li>
|
|
{{if .User}}
|
|
<div class="btn-group" id="navbar-dropdown">
|
|
<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>
|
|
</div>
|
|
{{else}}
|
|
<a href="/login">
|
|
<button type="button" class="btn btn-primary">Login</button>
|
|
</a>
|
|
{{end}}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "body" .}}
|
|
<!-- 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>
|
|
<script src="/js/jquery.dataTables.min.js"></script>
|
|
<script src="/js/dataTables.bootstrap.js"></script>
|
|
<script src="/js/chartist.min.js"></script>
|
|
<script src="/js/moment.min.js"></script>
|
|
<script src="/js/ckeditor/ckeditor.js"></script>
|
|
<script src="/js/ckeditor/adapters/jquery.js"></script>
|
|
<script src="/js/gophish.js"></script>
|
|
{{template "scripts" .}}
|
|
</body>
|
|
|
|
</html>
|
|
{{ end }}
|