{% load i18n %} {% comment %} The record's type as a primary badge in the header. When the registry describes the type, the badge is a button that opens that description in a dialog. Include with: label (the type's name), info (from `type_info`), id (the dialog's id) {% endcomment %} {% if info %} {% blocktranslate with type=label|capfirst asvar about %}About {{ type }}{% endblocktranslate %} {% comment %} The dialog is written out here, not drawn by `c-modal`, because `c-modal` gives the `` element no name, and a dialog with no name is announced as nothing at all. {% endcomment %} {% else %} {{ label|capfirst }} {% endif %}