aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-01 14:06:52 +0300
committerGravatar Vitaly Takmazov2018-11-01 14:06:52 +0300
commitb965122cdf4f23c07d169c706f2bf49a0b9b3d08 (patch)
treeb8fe7176e988a6da422e7c4c0bebf70b437b72ae
parentda95cbd0e78fbeb1056f1fbc2bc7005deacd3757 (diff)
ActivityPub: update tag format
-rw-r--r--juick-server/src/main/resources/templates/layouts/note.html8
-rw-r--r--juick-server/src/main/resources/templates/views/macros/tags.html2
2 files changed, 4 insertions, 6 deletions
diff --git a/juick-server/src/main/resources/templates/layouts/note.html b/juick-server/src/main/resources/templates/layouts/note.html
index 57ec667f..42b939c0 100644
--- a/juick-server/src/main/resources/templates/layouts/note.html
+++ b/juick-server/src/main/resources/templates/layouts/note.html
@@ -1,7 +1,5 @@
{% import "views/macros/tags" %}
+<p>{{ msg | formatMessage }}</p>
{% if msg.tags.size > 0 %}
-<div class="msg-tags">
- {{ allTags(baseUri, msg.tags | tagsList) }}
-</div>
-{% endif %}
-<p>{{ msg | formatMessage }}</p> \ No newline at end of file
+<div class="msg-tags">{{ allTags(baseUri, msg.tags | tagsList) }}</div>
+{% endif %} \ 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 1e668292..defed8e6 100644
--- a/juick-server/src/main/resources/templates/views/macros/tags.html
+++ b/juick-server/src/main/resources/templates/views/macros/tags.html
@@ -6,6 +6,6 @@
{% macro allTags(baseUri, tagsList) %}
{% for tag in tagsList %}
-<a href="{{ baseUri }}tag/{{ tag | urlencode }}">{{ tag | raw }}</a>
+<a href="{{ baseUri }}tag/{{ tag | urlencode }}">#{{ tag | raw }}</a>
{% endfor %}
{% endmacro %} \ No newline at end of file