{# Header of the workload pages: the core's look (⌂ 📅 … ··· ‹ title › ··· ⚙). Week ↔ Report (+ Activity, a plugin living inside Work, while it's on) are buttons at the right end of the totals row (switch); customers live in Settings ▸ Work. #} {% from "_header.html" import nav_btns, settings_btn, title_block, subline %} {% macro head(title, sub, current=True, center_href="/work", prev_href=None, next_href=None) %}
{{ nav_btns() }} {{ title_block(title, center_href, current, prev_href, next_href, prev_title="Previous week (←)", next_title="Next week (→)") }} {{ settings_btn("work") }}
{{ subline(sub) }} {% endmacro %} {# Week ↔ Report + the plugins living inside Work (Activity), in the same spot on every page #} {% macro switch() %} {% if tab == "report" %}Week{% else %}Report{% endif %} {% for href, label in plugin_section("workload").tabs %}{{ label }}{% endfor %} {% endmacro %} {% macro assets() %} {% endmacro %}