diff --git a/server/templates/macros.htm b/server/templates/macros.htm index 4aa787f..2e1c546 100644 --- a/server/templates/macros.htm +++ b/server/templates/macros.htm @@ -96,3 +96,26 @@ {{ link_entry_content(link) }} {%- endmacro %} + +{% macro media_table(media_list) %} + + + + + + + + {% for media in media_list %} + + + + + + + {% endfor %} +
DateTo WatchActionsTitle
{{ media.release_date.strftime("%d.%m.%Y") }} + {{ media.left_length | timedelta }} + + {{ media_element_buttons(media) }} + {{ media.title }}
+{%- endmacro %} diff --git a/server/templates/media_list.htm b/server/templates/media_list.htm index 53e1b83..3279af6 100644 --- a/server/templates/media_list.htm +++ b/server/templates/media_list.htm @@ -9,25 +9,6 @@

{{ title }}

- - - - - - - - {% for media in media_list %} - - - - - - - {% endfor %} -
DateTo WatchActionsTitle
{{ media.release_date.strftime("%d.%m.%Y") }} - {{ media.left_length | timedelta }} - - {{ macros.media_element_buttons(media) }} - {{ media.title }}
+ {{ macros.media_table(media_list) }}