2016-04-04 12:36:30 +00:00
|
|
|
<!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">
|
2016-04-04 15:59:06 +00:00
|
|
|
|
2016-04-04 12:36:30 +00:00
|
|
|
<meta name="description" content="Self hosted email newsletter app">
|
|
|
|
<meta name="author" content="Andris Reinman">
|
|
|
|
<link rel="icon" href="/favicon.ico">
|
|
|
|
|
|
|
|
<title>Mailtrain
|
|
|
|
{{#if title}} | {{title}}{{/if}}
|
|
|
|
</title>
|
|
|
|
|
2016-05-15 09:26:30 +00:00
|
|
|
<link rel="stylesheet" href="/bootstrap/themes/united.min.css">
|
2016-04-04 15:59:06 +00:00
|
|
|
<link rel="stylesheet" href="/datatables/datatables.min.css">
|
2016-04-04 12:36:30 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="/datepicker/css/bootstrap-datepicker3.css">
|
|
|
|
<link rel="stylesheet" href="/css/footer.css">
|
|
|
|
|
|
|
|
{{#if useEditor}}
|
|
|
|
<link rel="stylesheet" href="/summernote/summernote.css">
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2016-05-15 09:26:30 +00:00
|
|
|
<nav class="navbar navbar-default navbar-static-top">
|
2016-04-04 12:36:30 +00:00
|
|
|
<div class="container">
|
|
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="/"><i class="glyphicon glyphicon-envelope"></i> Mailtrain</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
{{#each menu}}
|
|
|
|
{{#if selected}}
|
|
|
|
<li class="active"><a href="{{url}}">{{title}} <span class="sr-only">(current)</span></a></li>
|
|
|
|
{{else}}
|
|
|
|
<li><a href="{{url}}">{{title}}</a></li>
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
2016-04-28 07:17:43 +00:00
|
|
|
<li><a href="https://mailtrain.wordpress.com/"><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span> Blog</a></li>
|
2016-04-04 12:36:30 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{#if user }}
|
|
|
|
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<span class="glyphicon glyphicon-user" aria-hidden="true"></span> {{user.username}} <span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
|
|
|
<a href="/users/account">
|
|
|
|
<span class="glyphicon glyphicon-user" aria-hidden="true"></span> Account
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/settings">
|
|
|
|
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span> Settings
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-05-07 11:28:24 +00:00
|
|
|
<li>
|
|
|
|
<a href="/users/api">
|
|
|
|
<span class="glyphicon glyphicon-retweet" aria-hidden="true"></span> API
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-04-04 12:36:30 +00:00
|
|
|
<li>
|
|
|
|
<a href="/users/logout">
|
|
|
|
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> Log out
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li>
|
|
|
|
<a href="/users/login" role="button" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span> Sign in
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<!-- Main jumbotron for a primary marketing message or call to action -->
|
|
|
|
|
|
|
|
{{#if indexPage}}
|
|
|
|
<div class="jumbotron">
|
|
|
|
<div class="container">
|
|
|
|
<div class="pull-right hidden-xs">
|
|
|
|
<img class="img-responsive" src="/mailtrain.png">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1>Mailtrain</h1>
|
|
|
|
<p>Self hosted newsletter app built on top of <a href="http://nodemailer.com">Nodemailer</a></p>
|
2016-05-15 09:26:30 +00:00
|
|
|
<p>
|
|
|
|
<a class="btn btn-info btn-md" href="https://github.com/andris9/mailtrain" role="button"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span> Source on GitHub</a>
|
|
|
|
|
|
|
|
<a class="btn btn-success btn-md" href="http://mailtrain.org/subscription/EysIv8sAx" role="button"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> Subscribe to our newsletter</a>
|
|
|
|
</p>
|
2016-04-04 12:36:30 +00:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
<div class="visible-xs-block ">
|
|
|
|
<img class="img-responsive" src="/mailtrain.png">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
{{flash_messages}} {{{body}}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="container">
|
2016-05-13 08:45:18 +00:00
|
|
|
<p class="text-muted">© 2016 Kreata OÜ <a href="https://mailtrain.org">Mailtrain.org</a>, <a href="mailto:info@mailtrain.org">info@mailtrain.org</a>. Source on <a href="https://github.com/andris9/mailtrain">GitHub</a></p>
|
2016-04-04 12:36:30 +00:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<script src="/javascript/jquery-2.2.1.min.js"></script>
|
|
|
|
<script src="/bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
|
|
|
|
<script src="/datepicker/js/bootstrap-datepicker.min.js"></script>
|
|
|
|
<script src="/datatables/datatables.min.js"></script>
|
|
|
|
<script src="/moment/moment.min.js"></script>
|
|
|
|
<script src="/javascript/tables.js"></script>
|
|
|
|
|
|
|
|
{{#if useEditor}}
|
2016-04-12 04:35:04 +00:00
|
|
|
<script src="/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
2016-04-04 12:36:30 +00:00
|
|
|
<script src="/summernote/summernote.min.js"></script>
|
|
|
|
<script src="/javascript/editor.js"></script>
|
|
|
|
{{/if}}
|
2016-05-02 16:50:43 +00:00
|
|
|
|
|
|
|
{{#if uaCode}}
|
|
|
|
<script>
|
|
|
|
(function(i, s, o, g, r, a, m) {
|
|
|
|
i['GoogleAnalyticsObject'] = r;
|
|
|
|
i[r] = i[r] || function() {
|
|
|
|
(i[r].q = i[r].q || []).push(arguments)
|
|
|
|
}, i[r].l = 1 * new Date();
|
|
|
|
a = s.createElement(o),
|
|
|
|
m = s.getElementsByTagName(o)[0];
|
|
|
|
a.async = 1;
|
|
|
|
a.src = g;
|
|
|
|
m.parentNode.insertBefore(a, m)
|
|
|
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
|
|
|
|
|
|
|
ga('create', '{{uaCode}}', 'auto');
|
|
|
|
ga('send', 'pageview');
|
|
|
|
</script>
|
|
|
|
{{/if}}
|
2016-04-04 12:36:30 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|