{# @description A section of an overview page: a heading with an optional count, the panel's own Edit control and a link to the full list, then its content. #} {# @prop title:text | description:"The heading." #} {# @prop count:text | description:"A count beside the heading." #} {# @prop edit_url:text | description:"The editing page for what the panel shows, for someone who may edit it." #} {# @prop edit_text:text | default:"Edit" | description:"The Edit control's text." #} {# @prop edit_icon:text | default:"edit" | description:"The Edit control's icon." #} {# @prop edit_label:text | description:"The Edit control's accessible name." #} {# @prop more_url:text | description:"The full list, linked as See all." #} {# @prop more_text:text | default:"See all" | description:"The full list link's text." #} {# @prop sub:text | description:"A line under the heading." #} {# @prop side:boolean | description:"A side-column panel, which is tighter." #} {# @prop id:text | description:"The section's id." #} {# @prop class:text | description:"Extra classes on the section." #} {# @slot

Panel content

— The content. #} {# @slot:head — Extra controls in the heading row. #} {% load i18n %}
{% if title or head %}
{% if title %}

{{ title }}

{% endif %} {% if count is not None and count != "" %}{{ count }}{% endif %} {{ head }} {% if edit_url or more_url %}
{% if more_url %}{{ more_text|default:_("See all") }}{% endif %}
{% endif %} {% if sub %}

{{ sub }}

{% endif %}
{% endif %} {{ slot }}