{# @description The Manage menu of a record's page: a dropdown of the editing pages the viewer may use. Draws nothing when there are no entries and the slot is empty, so it never opens empty. #} {# @prop entries:list | description:"The entries to draw, from `manage_menu`. Each has a `label`, an `icon` and a `url`, and a `destructive` flag on the entry that deletes the record, which is drawn after a divider." #} {# @slot Further menu items a record's own template adds after the entries, such as `` links. #} {% if entries or slot|wordcount %}
{% for entry in entries %} {% if entry.destructive %} {% if not forloop.first %}
  • {% endif %} {% else %} {% endif %} {% endfor %} {{ slot }}
    {% endif %}