aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/macros
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-03-31 00:44:49 +0300
committerGravatar Vitaly Takmazov2021-03-31 00:44:49 +0300
commit93fe99d9bfc9ae00f4164ea0ba32290722dff4dd (patch)
treef0637a6ad99ae7033e2fee4d100ed1fc63e64728 /src/main/resources/templates/views/macros
parentfbe50e415fbb3da5a7fa151338b00e6a94dc8d5d (diff)
Resource filtering is handled by Spring Boot Maven plugin
Diffstat (limited to 'src/main/resources/templates/views/macros')
-rw-r--r--src/main/resources/templates/views/macros/tags.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/resources/templates/views/macros/tags.html b/src/main/resources/templates/views/macros/tags.html
new file mode 100644
index 00000000..08687f5a
--- /dev/null
+++ b/src/main/resources/templates/views/macros/tags.html
@@ -0,0 +1,11 @@
+{% macro tags(uname="", tagsList) %}
+{% for tag in tagsList %}
+<a href="/{{ uname }}/?tag={{ tag | urlencode }}">{{ tag }}</a>
+{% endfor %}
+{% endmacro %}
+
+{% macro allTags(baseUri, tagsList) %}
+{% for tag in tagsList %}
+<a href="{{ baseUri }}tag/{{ tag | urlencode }}">#{{ tag }}</a>
+{% endfor %}
+{% endmacro %} \ No newline at end of file