We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa663b0 commit c02b130Copy full SHA for c02b130
src/Resources/themes/default/macros.twig
@@ -159,6 +159,18 @@
159
{% endif %}
160
{% endmacro %}
161
162
+{% macro categories(reflection) %}
163
+ {% if reflection.hasCategories() %}
164
+ <p>
165
+ {% for categoryTag in reflection.getCategories() %}
166
+ {% for category in categoryTag %}
167
+ <span class="label label-default">{{ category }}</span>
168
+ {% endfor %}
169
170
+ </p>
171
+ {% endif %}
172
+{% endmacro %}
173
+
174
{% macro todo(reflection) %}
175
{% if project.config('insert_todos') == true %}
176
{% if reflection.todo %}<small><span class="label label-info">{% trans 'todo' %}</span></small>{% endif %}
0 commit comments