[COMPONENTS][Tag] Actor/Note tag template polished

[PLUGINS][RelatedTags] Disable rendering of template when no results are found
This commit is contained in:
2021-12-06 22:22:23 +00:00
parent ef435b824b
commit 546c5c84fd
6 changed files with 44 additions and 12 deletions

View File

@@ -1,7 +1,9 @@
<div class="section-widget">
<p>Related tags:</p>
{% if note_tags is not empty %}
<div class="section-widget section-widget-padded">
<h2>Related tags:</h2>
{% for at in actor_tags %}
{% include 'cards/tag/actor_tag.html.twig' with { 'tag': at, 'actor': null } %}
{% endfor %}
</div>
{% endif %}

View File

@@ -1,6 +1,9 @@
<div class="section-widget">
<p>Related tags:</p>
{% for nt in note_tags %}
{% include 'cards/tag/note_tag.html.twig' with { 'tag': nt } %}
{% endfor %}
</div>
{% if note_tags is not empty %}
<div class="section-widget section-widget-padded">
<h2>Related tags:</h2>
{% for nt in note_tags %}
{% include 'cards/tag/note_tag.html.twig' with { 'tag': nt } %}
{% endfor %}
</div>
{% endif %}