From 20820eb3cb4e3d7c8ec6d1513da5f00ca043a534 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 24 Oct 2021 22:53:23 +0200 Subject: [PATCH] collection_element.htm: Add stats to element info --- server/templates/collection_element.htm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/templates/collection_element.htm b/server/templates/collection_element.htm index ccd67ce..3d0b234 100644 --- a/server/templates/collection_element.htm +++ b/server/templates/collection_element.htm @@ -24,6 +24,15 @@ {{ collection.keep_updated | tenary("Yes", "no") }} {{ macros.post_form(api_uri, "keep_updated", collection.keep_updated | tenary("false", "true"), "umschalten") }} + {% set stats = collection.stats %} +
  • + Length: + {{ stats.full_seconds | timedelta }} +
  • +
  • + To Watch: + {{ stats.to_watch_seconds | timedelta }} +
  • {% if collection.watch_in_order %}
  • Next Episode: