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 %}