forked from Kelder/cammiechat
57 lines
1.8 KiB
HTML
57 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<style>
|
|
body {
|
|
font-family: monospace;
|
|
background: black;
|
|
color: #00ff00;
|
|
font-size: 300%;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
h1 {
|
|
margin: -2em 0 1em;
|
|
color: transparent;
|
|
text-align: left;
|
|
font-size: 75%;
|
|
white-space: pre;
|
|
text-indent: 100%;
|
|
overflow: hidden;
|
|
}
|
|
h1:after {
|
|
text-indent: 0;
|
|
display: block;
|
|
color: #00cc00;
|
|
content: " _ _ ____ ____ ____ __ ___ ____ ____\a( \\/ )( __)/ ___)/ ___) / _\\ / __)( __)/ ___)\a/ \\/ \\ ) _) \\___ \\\\___ \\/ \\( (_ \\ ) _) \\___ \\\a\\_)(_/(____)(____/(____/\\_/\\_/ \\___/(____)(____/";
|
|
}
|
|
.msg_wrapper { margin-bottom: 0.3em; }
|
|
.msg .meta { background-color: #00ff00; margin-right: 0.6em; }
|
|
.msg .meta:before { content: " "; }
|
|
.msg .meta .between { display: inline-block; width: 0px; height: 1px; overflow: hidden; }
|
|
.msg time { color: #000; margin-right: 0.7em; }
|
|
.msg .sender { color: #000; }
|
|
.msg .sender:before { content: "!{"; } .msg .sender:after { content: "}!"; margin-right: 0.5em; }
|
|
.msg .sender.name:before { content: "<"; } .msg .sender.name:after { content: ">"; }
|
|
.msg .sender.ip:before { content: "["; } .msg .sender.ip:after { content: "]"; }
|
|
|
|
</style>
|
|
<title>Messages from the world to kelder</title>
|
|
<meta http-equiv="refresh" content="5" />
|
|
</head>
|
|
<body>
|
|
<h1>Messages</h1>
|
|
{% for m in messages %}
|
|
<div class="msg_wrapper">
|
|
<div class="msg"><!--
|
|
--><span class="meta"><!--
|
|
--><time datetime="{{ m.time }}">{{ "{:%d/%m %H:%M:%S}".format(m.time) }}</time><!--
|
|
--></span><!--
|
|
--><span class="msg">{{ m.msg }}</span><!--
|
|
--></div>
|
|
</div>
|
|
{% endfor %}
|
|
</body>
|
|
</html>
|