{# The frame every page is in. The top bar is `TABS` from app/web/pages.py plus the cog, and the cog's pages are `SETTINGS` there, in the rail settings/_rail.html draws: adding a page is one entry in one of those lists, never a link here. Three blocks let a page go past the default frame: `body_attrs` for attributes on ``, `header_tools` for controls between the brand and the tabs (the Roles page's burger and search box), and `page` to replace the centred `
` with a layout of its own (the Roles page's rail, feed and reader, and the settings rail in settings/_layout.html). A page setting `active_path` lights the tab for that path rather than its own, which is how `/roles/{uid}` keeps Roles lit. #} {% block title %}roledesk{% endblock %} {# Kept on the home screen rather than in a tab, as newsdesk is: `display: standalone` in the manifest drops the browser's chrome, which is worth a row of roles on a phone. `manifest.json` and not `.webmanifest`, because StaticFiles guesses the content type from the extension and not every machine knows the second one. Two `theme-color`s so the status bar is the colour of the header right under it. No service worker: the app is no use without the server. #} {# iOS reads neither the manifest nor the line above: standalone mode, the home screen label and the status bar are still set from its own `apple-` metas. #} {% set here = active_path | default(request.url.path, true) %}
roledesk {% block header_tools %}{% endblock %}
{% block page %}
{% block content %}{% endblock %}
{% endblock %} {# toasts first, and the order is load-bearing: it owns `window.toast`, which app.js calls on a failed fetch and live.js feeds server notices into, and `window.esc`, which every page script below builds its HTML with. app.js next, since every page script takes `api` and the shared helpers from it. #} {% block scripts %}{% endblock %}