{% macro render_entry_related(entry, comment_count=true) %} {% set pipe = joiner('|') %} {%- if entry.categories %} {{ pipe() }} {{ _('Categories') }}: {% for category in entry.categories -%} {{ category.name|e }} {%- if not loop.last %}, {% endif %} {%- endfor %} {%- endif %} {%- if entry.tags %} {{ pipe() }} {{ _('Tagged as') }}: {% for tag in entry.tags -%} {{ tag.name|e }} {%- if not loop.last %}, {% endif %} {%- endfor %} {% endif %} {%- if comment_count %} {{ pipe() }} {% trans comments=entry.comment_count %}{{ comments }} comment{% pluralize %}{{ comments}} comments{% endtrans -%} {% endif %} {%- if request.user.is_manager %} {{ pipe() }} {{ _('Edit') }} {%- endif %} {% endmacro %} {% macro render_entry(entry) -%}