From 2a3a97a6e816e2a91eea6e3a104a552ea81461be Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 6 Nov 2022 12:31:38 +0100 Subject: [PATCH] Add watch in order toggle button to collection table --- server/templates/collection_list.htm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/templates/collection_list.htm b/server/templates/collection_list.htm index 1a9725b..ff8327f 100644 --- a/server/templates/collection_list.htm +++ b/server/templates/collection_list.htm @@ -15,12 +15,15 @@ Date Count To Watch + Actions Thumbnail Title Tags {% for collection in collection_list %} - + {% set api_uri = "/api/collection/" + collection.id|string %} + {% set fragment = "collection_element_" + collection.id|string %} + {% if collection.release_date %} {{ collection.release_date.strftime("%d.%m.%Y") }} @@ -30,6 +33,9 @@ {{ collection.count }} {{ collection.to_watch_count }} + + {{ macros.post_form(api_uri, "watch_in_order", collection.watch_in_order | tenary("false", "true"), collection.watch_in_order | tenary("watch in order", "watch random"), fragment) }} + {% set e = (collection.next_episode or collection.first_episode).element %} Thumbnail for {{ e.title }}