From 0886b0290dd35b01776856db40e960863f200c68 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 24 Oct 2018 15:30:51 +0300 Subject: AcitvityPub: render Note using pebble --- juick-server/src/main/resources/templates/layouts/note.html | 7 +++++++ juick-server/src/main/resources/templates/views/macros/tags.html | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 juick-server/src/main/resources/templates/layouts/note.html (limited to 'juick-server/src/main/resources/templates') diff --git a/juick-server/src/main/resources/templates/layouts/note.html b/juick-server/src/main/resources/templates/layouts/note.html new file mode 100644 index 00000000..57ec667f --- /dev/null +++ b/juick-server/src/main/resources/templates/layouts/note.html @@ -0,0 +1,7 @@ +{% import "views/macros/tags" %} +{% if msg.tags.size > 0 %} +
+{% endif %} +{{ msg | formatMessage }}
\ No newline at end of file diff --git a/juick-server/src/main/resources/templates/views/macros/tags.html b/juick-server/src/main/resources/templates/views/macros/tags.html index 09278ffe..1e668292 100644 --- a/juick-server/src/main/resources/templates/views/macros/tags.html +++ b/juick-server/src/main/resources/templates/views/macros/tags.html @@ -2,4 +2,10 @@ {% for tag in tagsList %} {{ tag | raw }} {% endfor %} +{% endmacro %} + +{% macro allTags(baseUri, tagsList) %} +{% for tag in tagsList %} +{{ tag | raw }} +{% endfor %} {% endmacro %} \ No newline at end of file -- cgit v1.2.3