server WIP
This commit is contained in:
parent
7d00923533
commit
7622cc99ca
6 changed files with 198 additions and 10 deletions
|
|
@ -1,5 +1,8 @@
|
|||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>8seg Web Interface</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<h1>8seg Web Interface</h1>
|
||||
|
|
@ -7,10 +10,14 @@
|
|||
offensive messages, spam or similar. 8seg is currently open to the congress network on the hope that y'all will
|
||||
behave civilly. Please don't make me put a login wall in front of this thing, alright? ;) </p>
|
||||
|
||||
<p> If you have any questions, or you see 8seg being used by someone for bad, please email me at
|
||||
<p>Please do not post automated messages at a frequency higher than one per 20 minutes. No spam, no
|
||||
commercial advertising and absolutely nothing cryptocurrency-related.</p>
|
||||
|
||||
<p> If you have any questions, or you see 8seg being used for something stupid or bad, please email me at
|
||||
<a href="mailto:37c3.m@jaseg.de">37c3.m@jaseg.de</a> </p>
|
||||
|
||||
<form action="POST">
|
||||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{csrf_token}}"/>
|
||||
<button type="submit">I agree to not be an asshole</button>
|
||||
</form>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>8seg Web Interface</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<ul class=flashes>
|
||||
{% for message in messages %}
|
||||
<li>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
There are approximately {{count}} messages in queue.
|
||||
|
||||
<form id="message-form" method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{csrf_token}}"/>
|
||||
<textarea name="message" cols="{{cols}}" rows="{{rows}}" placeholder="Message up to {{cols}} characters per line, displayed line by line">{{message}}</textarea>
|
||||
<button type="submit">Post</button>
|
||||
</form>
|
||||
</body>
|
||||
<style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue