{% extends "base.html" %} {% from "_clock.html" import clock %} {% block title %}Dashboard{% endblock %} {# Home = the clock + the regions the plugins fill (pluginhost.home_parts → parts: weather; stations, main — the measurement stations; side, up, day, evdata — the calendar). A plugin that's off leaves its regions out: the page grid (dash.css .page-home) closes up through data-off (web.home: off-wx / off-st / off-cal). #} {% block main_attrs %}{% if off %} data-off="{{ off | join(' ') }}"{% endif %}{% endblock %} {% block page %} {{ clock() }} {% for region in ("weather", "stations", "main", "side", "up", "day") %}{% if region in parts %}{{ parts[region] | safe }}{% endif %}{% endfor %} {% for region, html in parts.items() if region not in ("weather", "stations", "main", "side", "up", "day") %}{{ html | safe }}{% endfor %} {% endblock %}