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) %}
+
+
+ | Date |
+ To Watch |
+ Actions |
+ Title |
+
+ {% for media in media_list %}
+
+ | {{ media.release_date.strftime("%d.%m.%Y") }} |
+
+ {{ media.left_length | timedelta }}
+ |
+
+ {{ media_element_buttons(media) }}
+ |
+ {{ media.title }} |
+
+ {% endfor %}
+
+{%- 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 }}
-
-
- | Date |
- To Watch |
- Actions |
- Title |
-
- {% for media in media_list %}
-
- | {{ media.release_date.strftime("%d.%m.%Y") }} |
-
- {{ media.left_length | timedelta }}
- |
-
- {{ macros.media_element_buttons(media) }}
- |
- {{ media.title }} |
-
- {% endfor %}
-
+ {{ macros.media_table(media_list) }}