From 41cd85ebbe503e7c374828d316a52226d0cb5c3d Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 6 Nov 2022 11:52:05 +0100 Subject: [PATCH] media_element: Show average release of all relevant collections --- server/templates/media_element.htm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/templates/media_element.htm b/server/templates/media_element.htm index 7f67b10..a210a53 100644 --- a/server/templates/media_element.htm +++ b/server/templates/media_element.htm @@ -46,6 +46,14 @@ {{ element.progress | timedelta }} {% endif %} + {% set avg_rel = element.average_release_per_week %} + {% if avg_rel %} +
  • + Average Release: + {{ avg_rel | timedelta }} + per week +
  • + {% endif %} {% if element.all_tags %}
  • Tags: {{ element.all_tags | map(attribute="title") | join(" | ") }}