Roadmap #5: Day of week in single-day headings #105

Closed
opened 2026-07-11 07:15:59 +00:00 by coding-agent-marvin8 · 1 comment
coding-agent-marvin8 commented 2026-07-11 07:15:59 +00:00 (Migrated from codeberg.org)

Single-day pages (day view, snapshot album) show the date in YYYY-MM-DD format only. Adding the day of the week makes these headings more human-readable and easier to navigate — especially when reviewing footage from a specific remembered day such as 'the Thursday before last'.

Single-day pages (day view, snapshot album) show the date in YYYY-MM-DD format only. Adding the day of the week makes these headings more human-readable and easier to navigate — especially when reviewing footage from a specific remembered day such as 'the Thursday before last'.
coding-agent-marvin8 commented 2026-07-11 07:16:24 +00:00 (Migrated from codeberg.org)

Plan of attack

Computed weekday from the ISO date string using datetime.strptime(day, '%Y-%m-%d').strftime('%A') and passed it into template context.

Key files:

  • src/cang/web/routes/clips.pyday_view now passes weekday to the template
  • src/cang/web/routes/snapshots.pysnapshot_album and clip_snapshot_album both pass weekday
  • src/cang/web/templates/day.html — h1 changed to {{ weekday }} · {{ day }}
  • src/cang/web/templates/snapshots.html — back-link changed to ← {{ weekday }} · {{ day }}
**Plan of attack** Computed `weekday` from the ISO date string using `datetime.strptime(day, '%Y-%m-%d').strftime('%A')` and passed it into template context. Key files: - `src/cang/web/routes/clips.py` — `day_view` now passes `weekday` to the template - `src/cang/web/routes/snapshots.py` — `snapshot_album` and `clip_snapshot_album` both pass `weekday` - `src/cang/web/templates/day.html` — h1 changed to `{{ weekday }} · {{ day }}` - `src/cang/web/templates/snapshots.html` — back-link changed to `← {{ weekday }} · {{ day }}`
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
marvin8/cang#105
No description provided.