2014-04-20 14:35:59 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html ng-app="mailhogApp">
|
|
|
|
<head>
|
|
|
|
<title>MailHog</title>
|
|
|
|
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
|
|
|
|
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
|
|
|
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.15/angular.js"></script>
|
|
|
|
<script src="/js/controllers.js"></script>
|
|
|
|
<style>
|
2014-04-26 12:12:26 +00:00
|
|
|
body, html { height: 100%; overflow: hidden; }
|
2014-04-20 14:35:59 +00:00
|
|
|
.navbar {
|
|
|
|
margin-bottom: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 100%;
|
2014-04-26 13:43:54 +00:00
|
|
|
border-bottom: 1px solid #ccc;
|
2014-04-20 14:35:59 +00:00
|
|
|
}
|
|
|
|
.navbar-header img {
|
|
|
|
height: 35px;
|
|
|
|
margin: 8px 0 0 5px;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
.navbar-nav.navbar-right:last-child {
|
|
|
|
margin-right: 0; /* bootstrap fix?! */
|
|
|
|
}
|
2014-04-27 17:19:30 +00:00
|
|
|
.ajax-loader {
|
|
|
|
background: url('/images/ajax-loader.gif');
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.ajax-event {
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
.ajax-event h1 {
|
|
|
|
font-size: 1em;
|
|
|
|
padding: 2px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.ajax-event h2 {
|
|
|
|
font-size: 0.8em;
|
|
|
|
padding: 2px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2014-04-20 14:35:59 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body ng-controller="MailCtrl">
|
|
|
|
<nav class="navbar navbar-default navbar-static-top" role="navigation">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<img src="/images/hog.png">
|
|
|
|
<a class="navbar-brand" href="#">MailHog</a>
|
|
|
|
</div>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
2014-04-27 17:19:30 +00:00
|
|
|
<li ng-if="eventCount > 0" class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<span ng-if="eventCount > eventDone" class="ajax-loader"></span>
|
|
|
|
{{ eventCount - eventDone }} pending <b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li ng-class="e.getClass()" ng-repeat="(id, e) in eventsPending" class="ajax-event">
|
|
|
|
<h1>{{ e.name }}</h1>
|
|
|
|
<h2 ng-if="e.args">{{ e.args }}</h2>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-04-20 14:35:59 +00:00
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Options <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="#" ng-click="refresh()">Refresh</a></li>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><a href="#" ng-click="deleteAll()">Delete all messages</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-04-20 16:09:06 +00:00
|
|
|
<li><a target="_blank" href="https://github.com/ian-kent/Go-MailHog">GitHub</a></li>
|
2014-04-20 14:35:59 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<%= content %>
|
|
|
|
</body>
|
|
|
|
</html>
|