{# One problem in a status list: a title with the count, a line saying what it means, the action that fixes it, and optionally the affected files folded under "Show files". Page JS reveals the card and fills the title (#issue--title) and file list (#issue--files) when it knows the count; pass `shown=true` for a card the server already knows applies. `caller()` renders into the files panel for server-rendered lists. #} {% macro issue_card(key, title='', description='', action_id=none, action_label=none, has_files=false, shown=false) %}

{{ title }}

{% if action_id %} {% endif %}

{{ description }}

{% if has_files %}
{{ _("Show files") }}
{% if caller %}{{ caller() }}{% endif %}
{% endif %}
{% endmacro %}