{% extends "base.html" %} {% import "workload/_head.html" as wl with context %} {% block title %}Work · CW {{ v.cw }}{% endblock %} {% block head %}{{ wl.assets() }}{% endblock %} {% block main_attrs %} data-norefresh{% endblock %} {# Week of time entries. Geometry in % of the day's visible hours (views.week); workload.js does the interaction: drag on a day = new entry, click a block = edit, drag a block = move, drag its bottom edge = resize, click a faint calendar event = book it. "Activity" (while the Activity plugin is on) adds a lane on each day's right: what ActivityWatch saw, sorted — click a block to book it (customer guessed from its category). #} {% block page %} {{ wl.head("CW " ~ v.cw, v.range, v.offset == 0, "/work", "/work?w=" ~ (v.offset - 1), "/work?w=" ~ (v.offset + 1)) }}
{{ v.total }} h
{{ v.billable }} billable{% if v.unbillable != "0:00" %} · {{ v.unbillable }} not billable{% endif %}
{% if v.amounts %}
{{ v.amounts | join(" · ") }}
{% endif %} {% if v.progress is not none %}
{% endif %} {% if act_on %}{% endif %} {{ wl.switch() }}
{# customers: this week's hours per customer; click = its settings (rates, notes, projects) #} {% if v.customers %} {% endif %} {% if v.empty_tree %}
No customers yet. Add your first customer (Settings ▸ Work), then drag on a day here to book time.
{% endif %} {# scrolls both ways inside the window: all 24 h, opened at the focus hours (workload.js fit()) #}
{% for c in v.cols %}
{{ c.label }} {% if c.billable %}{{ c.billable }}{% endif %}{% if c.billable and c.unbillable %} + {% endif %}{% if c.unbillable %}{{ c.unbillable }}{% endif %}
{% endfor %}
{% for l in v.lines %}{{ l.label }}{% endfor %}
{% for c in v.cols %}
{% for b in c.bands %}
{{ b.label }}
{% endfor %} {% for l in v.lines %}
{% endfor %} {% for g in c.ghosts %}
{{ g.title }}
{% endfor %} {% for b in c.blocks %}
{{ b.name }}{% if b.client %} {{ b.client }}{% endif %}
{{ b.time }} · {{ b.dur }}{% if not b.billable %} · not billable{% endif %}
{% if b.note %}
{{ b.note }}
{% endif %} {% if not b.cont_after %}
{% endif %}
{% endfor %} {% for a in c.act %}
{% if a.height > 2.2 %}{{ a.name }}{% endif %}
{% endfor %} {% if c.now is not none and 0 <= c.now <= 100 %}
{% endif %}
{% endfor %}

Drag on a day to book time · click a block to edit · drag it to move, its bottom edge to resize{% if v.cols | selectattr("ghosts") | list %} · click a faint calendar event to book it{% endif %}{% if show_act %} · click an activity block (right lane) to book it{% endif %}

{% endblock %} {% block scripts %} {# entry form (no browser dialogs) #} {% endblock %}