{% load i18n phoxtail_dashboard_tags phoxtail_design_tags %}
{% comment %}
The site's own pages, behind one sidebar row: a card opens beside the
sidebar. A dropdown's label heads its links.
{% endcomment %}
{% if dashboard_menu.items %}
{% icon "link" %}
{% translate 'Website' %}
{% icon "chevron_right" %}
{% for entry in dashboard_menu.items %}
{% if entry.block_type == 'dropdown' %}
{{ entry.value.label }}
{% for item in entry.value.items %}
{% if item.block_type == 'separator' %}
{% else %}
{% menu_entry item as link %}
{% if link %}
{% include 'phoxtail_dashboard/navigation/menu_link.html' with link=link link_class='dash-flyout__link dash-flyout__sublink' current_class='dash-flyout__link--current' %}
{% endif %}
{% endif %}
{% endfor %}
{% elif entry.block_type == 'separator' %}
{% else %}
{% menu_entry entry as link %}
{% if link %}
{% include 'phoxtail_dashboard/navigation/menu_link.html' with link=link link_class='dash-flyout__link' current_class='dash-flyout__link--current' %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}