{#- The frame of the pages on the Abilian Design System: one bar, no menu column (`notes/ux/design-principles.md`, section 3; drawn in `mockups/templates/base.html`). A page moves to ADS when its template extends this one; until then it keeps `base.html` and Tailwind, so the two stylesheets never meet on one page. -#} {% extends "ads/shell.html" %} {% import "ads_macros.html" as m with context %} {% set layout_class = "ads-app--horizontal" %} {% set shell_script = url_for("abilian_sbe_static", filename="ads/shell.js") %} {% set restore_script = url_for("abilian_sbe_static", filename="ads/restore.js") %} {% set here = g.get("community") %} {% set communities_menu = communities_of(current_user)[:8] %} {% set menu_news = news_in(current_user, communities_menu) %} {% block lang %}{{ get_locale().language }}{% endblock %} {% block title %}{% block page_title %}{% endblock %} ยท {{ config.SITE_NAME }}{% endblock %} {% block stylesheet %} {% endblock %} {#- What the app's scripts read (CSRF token, API URLs). Every page loads `src/main.js` (a message's close button, the widgets), with no stylesheet; a page that needs more (the editor) replaces the `scripts` block. -#} {% block head %}{% include "_js_config.html" %}{% endblock %} {% block scripts %}{{ vite_asset("src/main.js") }}{% endblock %} {% block icon %}{% endblock %} {% block skip %}{{ _("Skip to content") }}{% endblock %} {% block menu_label %}{{ _("Menu") }}{% endblock %} {% block brand_href %}{{ url_for("main.home") }}{% endblock %} {% block brand_mark %}{% endblock %} {% block brand_name %}{{ config.SITE_NAME }}{% endblock %} {% block nav %} {#- Four zones: who we are (the logo); where to go; what to do (search, create); the utilities. On a phone, where to go moves to a bar at the bottom. -#}
{#- Inside a community, the search looks there first: its name is a ticked box in the field, unticked to search everywhere. As one types, suggestions open under the field (`vite/src/suggest.js`, `search/_suggestions.html`); `/` reaches it from any page. -#}
{{ icon("search") }} {#- Create: a discussion, in one of my communities; the other kinds follow as their forms move to ADS. -#}
{{ icon("plus") }}{{ _("Create") }}
{{ m.start_in(communities_menu) }}
{{ icon("layout-grid") }}
{{ m.avatar(current_user) }}
{% endblock %} {#- One bar: the shell's second bar goes. -#} {% block topbar %}{% endblock %} {#- What the last action said, under the page's title. -#} {% block page_header %} {{ super() }} {{ m.flashes("ads-container") }} {% endblock %}