From 8972f0ffb0db1771cdd932d05e9e262a03017e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannnes=20B=C3=BCrst?= Date: Sat, 26 Sep 2020 20:39:30 +0200 Subject: [PATCH] basic admin interface done --- calender/templates/calender/admin.html | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 calender/templates/calender/admin.html diff --git a/calender/templates/calender/admin.html b/calender/templates/calender/admin.html new file mode 100644 index 0000000..7654338 --- /dev/null +++ b/calender/templates/calender/admin.html @@ -0,0 +1,50 @@ +{% extends 'base.html' %} + +{% block header %} +
+

{% block title %}Welcome to the Dankventskalender 2020!{% endblock %}

+
+
Submit your meme for the next day now! Feel free to create and submit your own creations.
+
+ {% if g.user %} + + + + {% endif %} +
+
+{% endblock %} + +{% block content %} +
+ {% for post in posts %} +
+
+
+
+

{{ post['title'] }}

+

{{ post['nickname'] }}

+
by {{ post['username'] }} + on {{ post['created'].strftime('%Y-%m-%d') }}
+
+ {% if g.user['id'] %} + Edit + {% endif %} +
+ {% if post['type'] == 'image' %} + + {% endif %} + {% if post['type'] == 'video' %} + + {% endif %} +

{{ post['body'] }}

+
+ {% if not loop.last %} +
+ {% endif %} +
+ {% endfor %} +
+{% endblock %}