From d8ed8fd518229ea221e05b53dd949d27b30bcad8 Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Wed, 22 Mar 2017 01:02:51 +0100 Subject: [PATCH] Add stuff, pimp ui, ... --- resources/templates/comments.html | 6 ++++++ resources/templates/detail.html | 28 ++++++++++++++++++++++++---- resources/templates/index.html | 29 ++++++++++++++++++----------- resources/templates/layout.html | 27 +++++++++++++++++++++------ resources/templates/statistics.html | 6 ++++++ src/clj/yenu/routes/core.clj | 7 ++++++- 6 files changed, 81 insertions(+), 22 deletions(-) create mode 100644 resources/templates/comments.html create mode 100644 resources/templates/statistics.html diff --git a/resources/templates/comments.html b/resources/templates/comments.html new file mode 100644 index 0000000..e2064fc --- /dev/null +++ b/resources/templates/comments.html @@ -0,0 +1,6 @@ +{% extends "layout.html" %} + +{% block content %} +

Kommentarstream

+ +{% endblock %} diff --git a/resources/templates/detail.html b/resources/templates/detail.html index 27ccb2a..fd39161 100644 --- a/resources/templates/detail.html +++ b/resources/templates/detail.html @@ -8,24 +8,39 @@ {% else %} {% endif %} + Nächstes Bild + + + Zur Gallerie + + {% if prev-image %} {% else %} {% endif %} Vorheriges Bild + + + + +
+ + + Bearbeiten + + + + Löschen

{{ image.title }}

-
-

{{ image.created_at|parse-date|date:"dd-MM-yyyy HH:mm" }}

-
{% for tag in tags %} {{ tag.tagname }} @@ -35,14 +50,19 @@
+ + +
+
+

{{ image.created_at|parse-date|date:"dd-MM-yyyy HH:mm" }} Uhr

{% if image.description|length > 0 %} -
+

{{ image.description|markdown-to-html|safe }}

{% endif %} diff --git a/resources/templates/index.html b/resources/templates/index.html index 57649d6..7a7a8fd 100644 --- a/resources/templates/index.html +++ b/resources/templates/index.html @@ -1,20 +1,14 @@ {% extends "layout.html" %} {% block content %} -
- {% for image in images %} - - {{ image.title }} - - {% endfor %} -
-
- {% if pages|count > 1 %} +
{% endif %} + +
+ {% for image in images %} + + {{ image.title }} + + {% endfor %} +
+
{% endblock %} diff --git a/resources/templates/layout.html b/resources/templates/layout.html index 122fe1f..0f0154d 100644 --- a/resources/templates/layout.html +++ b/resources/templates/layout.html @@ -6,21 +6,36 @@ yenu -- the image sharing tool for friends -