cyberman/views/layouts/main.tt

83 lines
1.5 KiB
Plaintext

<!DOCTYPE HTML>
<html lang=en>
<head>
<meta charset="utf8" />
<meta name="viewport" content="width=device-width" />
<% IF redir %>
<meta http-equiv="refresh" content="0;<% redir %>" />
<% END %>
<title>cybNIC</title>
<style>
* {
margin: 0;
}
body, a {
background-color: black;
font-family: monospace;
color: white;
font-size: 14px;
line-height: 1.6em;
}
p {
margin-bottom: 0.8em;
}
.body {
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.toolbar {
border: 1px solid white;
}
a.bracketButton {
text-decoration: none;
}
a.bracketButton:hover {
text-decoration: underline;
}
button.textButton {
background: none !important;
color: inherit;
border: none;
padding: 0 !important;
font: inherit;
cursor: pointer;
}
button.textButton:hover {
text-decoration: underline;
}
form.login>table>tbody>tr>td>label {
margin-right: 10px;
}
table.domains>tbody>tr>td:first-child>* {
margin-right: 2em;
}
.msgBox {
border: 1px solid white;
display: inline-block;
padding: 10px;
}
</style>
</head>
<body>
<% IF vars.auth %>
<div class="toolbar">
<div class="body">
<span>
Logged in as <% vars.email | html_entity %>
</span>
<span style="float:right;">
<form action="/logout" method="POST">
[&nbsp;<button class="textButton" action="submit">log&nbsp;out</button>&nbsp;]
</form>
</span>
</div>
</div>
<% END %>
<% content %>
</body>
</html>