mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
26 lines
827 B
HTML
26 lines
827 B
HTML
{% extends "layout.html" %}
|
|
{% import 'utils.html' as utils %}
|
|
{% block title %}New - {{ config.NAME }}{% endblock %}
|
|
{% block content %}
|
|
<div id="container">
|
|
{% include "header.html" %}
|
|
<div id="new">
|
|
{% if thread %}
|
|
<h3 style="padding-bottom: 30px">Replying to {{ content }}</h3>
|
|
{{ utils.display_thread(thread) }}
|
|
{% else %}
|
|
<h3 style="padding-bottom:20px;">New note</h3>
|
|
{% endif %}
|
|
<form action="/api/new_note" method="POST">
|
|
<input type="hidden" name="redirect" value="/">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
{% if reply %}<input type="hidden" name="reply" value="{{reply}}">{% endif %}
|
|
<textarea name="content" rows="10" cols="50" autofocus="autofocus">{{ content }}</textarea>
|
|
<div style="margin-top:20px;">
|
|
<input type="submit" value="post">
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|