From 7aaa3f9a29c280f01c677c918932620be45cdbd7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 8 Nov 2018 21:38:27 +0300 Subject: Merge everything into single Spring Boot application --- src/main/resources/templates/layouts/content.html | 38 +++++++++++++++++++++++ src/main/resources/templates/layouts/default.html | 16 ++++++++++ src/main/resources/templates/layouts/minimal.html | 10 ++++++ src/main/resources/templates/layouts/note.html | 5 +++ 4 files changed, 69 insertions(+) create mode 100644 src/main/resources/templates/layouts/content.html create mode 100644 src/main/resources/templates/layouts/default.html create mode 100644 src/main/resources/templates/layouts/minimal.html create mode 100644 src/main/resources/templates/layouts/note.html (limited to 'src/main/resources/templates/layouts') diff --git a/src/main/resources/templates/layouts/content.html b/src/main/resources/templates/layouts/content.html new file mode 100644 index 00000000..d2d29c4e --- /dev/null +++ b/src/main/resources/templates/layouts/content.html @@ -0,0 +1,38 @@ + + + + + + + + {% block headers %} + {{ headers | default('') | raw }} + {% endblock %} + {{ title | default('Juick') }} + + + + + + + + + + + + + + + + + + + + + + + 0 %}data-hash="{{visitor.authHash}}"{% endif %}> +{% block body %} +{% endblock %} + + diff --git a/src/main/resources/templates/layouts/default.html b/src/main/resources/templates/layouts/default.html new file mode 100644 index 00000000..343885c4 --- /dev/null +++ b/src/main/resources/templates/layouts/default.html @@ -0,0 +1,16 @@ +{% extends "layouts/content" %} +{% block body %} +{% include "views/partial/navigation" %} +
+
+ {% block content %} + {% endblock %} +
+ +
+{% include "views/partial/footer" %} +{% endblock %} \ No newline at end of file diff --git a/src/main/resources/templates/layouts/minimal.html b/src/main/resources/templates/layouts/minimal.html new file mode 100644 index 00000000..15924521 --- /dev/null +++ b/src/main/resources/templates/layouts/minimal.html @@ -0,0 +1,10 @@ +{% extends "layouts/content" %} +{% block body %} +
+
+ {% block content %} + {% endblock %} +
+
+{% include "views/partial/footer" %} +{% endblock %} \ No newline at end of file diff --git a/src/main/resources/templates/layouts/note.html b/src/main/resources/templates/layouts/note.html new file mode 100644 index 00000000..42b939c0 --- /dev/null +++ b/src/main/resources/templates/layouts/note.html @@ -0,0 +1,5 @@ +{% import "views/macros/tags" %} +

{{ msg | formatMessage }}

+{% if msg.tags.size > 0 %} +
{{ allTags(baseUri, msg.tags | tagsList) }}
+{% endif %} \ No newline at end of file -- cgit v1.2.3