summaryrefslogtreecommitdiff
path: root/web/templates/index.html
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-01-24 20:12:07 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-01-24 20:12:07 -1000
commitc290113bd1a8af694b648bba4c801e00b049683a (patch)
tree75d066a74d0f3e596d3fbe5bd89f8e2d449ca011 /web/templates/index.html
parentb69d2d5fc8779f43b1ac789605318488efc91361 (diff)
Add Shopping tab combining Trello and PlanToEat lists
- New Shopping tab aggregates items from Trello Shopping board and PlanToEat - Items grouped by store, then by category (for PlanToEat) - Trello list names treated as store names - Replace PlanToEat meals API with web scraping (uses session cookie) - Add error logging for PlanToEat fetch operations - Recipe links now point to cooking view (/recipes/{id}/cook/{event_id}) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'web/templates/index.html')
-rw-r--r--web/templates/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/templates/index.html b/web/templates/index.html
index 050f0bf..a5a7f38 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -56,6 +56,22 @@
onclick="setActiveTab(this)">
🍽️ Meals
</button>
+ <button
+ class="tab-button {{if eq .ActiveTab "timeline"}}tab-button-active{{end}}"
+ hx-get="/tabs/timeline"
+ hx-target="#tab-content"
+ hx-push-url="?tab=timeline"
+ onclick="setActiveTab(this)">
+ 📅 Timeline
+ </button>
+ <button
+ class="tab-button {{if eq .ActiveTab "shopping"}}tab-button-active{{end}}"
+ hx-get="/tabs/shopping"
+ hx-target="#tab-content"
+ hx-push-url="?tab=shopping"
+ onclick="setActiveTab(this)">
+ 🛒 Shopping
+ </button>
</nav>
</div>