1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-24 19:07:23 +01:00

Mailpile: an installation script and a multiplexer daemon that proxies Mailpile behind an authorization step and multiplexes Mailpile instances per logged in user

This commit is contained in:
Joshua Tauberer
2014-07-02 11:42:20 +00:00
parent d11ce688ca
commit 4f57c62681
7 changed files with 406 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
<html>
<head>
<title>Mailpile</title>
</head>
<FRAMESET ROWS="35, *" BORDER="0">
<FRAME SRC="status">
<FRAME SRC="mailpile">
</FRAMESET>
</HTML>

View File

@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>{{hostname}}</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-offset-2 col-sm-8 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6">
<center>
<h1 style="margin: 1em">{{hostname}}</h1>
<p style="margin: 2em">Log in here to your Mailpile webmail.</p>
{% if error %}
<p style="margin: 2em" class="text-danger">{{error}}</p>
{% endif %}
</center>
<form class="form-horizontal" role="form" method="post">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input name="email" type="email" class="form-control" id="inputEmail" placeholder="Email" value="{{email}}">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input name="password" type="password" class="form-control" placeholder="Password" value="{{password}}">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label>
<input name='remember' type="checkbox" {% if remember %}checked{% endif %}> Remember me
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">Sign in</button>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="//code.jquery.com/jquery-2.1.1.min.js"> </script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
</body>
</html>

View File

@@ -0,0 +1,24 @@
<html>
<head>
<style>
body {
margin: 0;
padding-top: 8px;
padding-right: 8px;
font-size: 12px;
font-family: sans-serif;
background: #f6f6f6;
color: #444;
border-bottom: 1px solid #EEE;
text-align: right;
}
body a {
color: #449;
}
</style>
</style>
<body>
You are logged in as {{auth.email}}.
<a href="logout">Log out?</a>
</body>
</html>