{%- from "_macros.html" import icon -%} {#- すべての画面に共通の枠。値は自動でエスケープされる。frame はログインしていない画面では None。 -#} {%- macro menu(items, label, css) -%} {%- endmacro -%} {#- スマートフォンの幅で画面の下に出すタブ。主な場所を並べ、ほかは「その他」(details)にまとめる。 -#} {%- macro tab(item) -%} {{ icon(item.icon) }}{{ item.text }}{% if item.badge %}{{ item.badge }}{% endif %} {%- endmacro -%} {{ title }} {%- if frame %}{{ menu(frame.menu, "メインメニュー", "site-menu") }}{% endif -%}
{%- if frame and frame.management %}{{ menu(frame.management, "管理のメニュー", "sub-menu") }}{% endif -%} {%- if frame and frame.management_tabs %}{{ menu(frame.management_tabs, "管理の中の画面", "sub-tabs") }}{% endif -%} {%- if frame and frame.section_tabs %}{{ menu(frame.section_tabs, frame.section_label, "sub-tabs") }}{% endif -%} {%- block content %}{% endblock -%}
{%- if frame %}{% endif -%}