Render categories properly

This commit is contained in:
str4d
2013-02-03 01:40:47 +00:00
parent ca0f74e9ba
commit 508c6f1e80
2 changed files with 9 additions and 1 deletions

View File

@@ -31,3 +31,10 @@
{%- endif %}
</div>
{%- endmacro -%}
{%- macro render_categories(categories) -%}
{%- if categories and categories|length %}
{%- for category in categories %}{{ category }}{% if not loop.last %}, {% endif %}{% endfor %}
{%- else %}{{ _('None') }}
{%- endif %}
{%- endmacro %}