forked from GNUsocial/gnu-social
[COMPONENTS][Tag] Actor/Note tag template polished
[PLUGINS][RelatedTags] Disable rendering of template when no results are found
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user