{% macro render_topics_table(topics, show_author=True, current_user=current_user, class_=None) -%}
{{ _("Title") }} | {% if show_author %}{{ _("Author") }} | {% endif %}{{ _("Name") }} | {{ _("Date") }} | {{ _("Actions") }} | |
---|---|---|---|---|---|
[{{ topic.type.text }}] | {{ topic.title }} {% if topic.wip %}[{{ _("WIP") }}]{% endif %} | {% if show_author %}{{ topic.author.display_name}} | {% endif %}{{ topic.name or ""}} | {{ topic.created_at | date }} | {% if current_user == topic.author or topic.author.check_perm(current_user, "CHANGE_AUTHOR") %} {{ _("Create") }} {% endif %} {% if topic.link %} {{ topic.link | domain | truncate(18) }} {% endif %} |