Retheme media_element html template

- for further additions
master
Felix Stupp 2 years ago
parent 120a42476a
commit 986d322f83
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -86,6 +86,16 @@
font-size: 1.2rem;
}
/* media element */
.element_view {
display: flex;
flex-wrap: wrap-reverse;
justify-content: space-between;
align-items: flex-end;
}
.element_view > .element_info {
display: block;
}
</style>
{% endmacro %}

@ -10,52 +10,56 @@
<body>
{{ macros.body_header() }}
<h1>{{ title }}</h1>
<h2>Notes</h2>
<pre>{{ element.notes or "" }}</pre>
<h2>Properties</h2>
<ul>
<li>
{{ macros.media_element_buttons(element) }}
{{ macros.no_input_post_form("/api/refresh/media/" + element.id|string, "refresh") }}
</li>
<li>Can be considered: {{ element.can_considered | tenary("Yes", "no") }}</li>
<li>
Date:
{{ element.release_date }}
</li>
<li>
Length:
{{ element.length | timedelta }}
{%- if element.progress > 0 -%}
, Progress:
{{ element.progress | timedelta }}
{% endif %}
</li>
{% if element.all_tags %}
<li>
Tags: {{ element.all_tags | map(attribute="title") | join(" | ") }}
</li>
{% endif %}
</ul>
<h2>Part of Collections</h2>
<ul>
{% for link in element.collection_links %}
<li>
<a href="{{ link.collection.info_link }}">{{ link.collection.title }}</a>
{%- if link.season != 0 -%}
, Season {{ link.season }}
<div class="element_view">
<div class="element_info">
<h2>Notes</h2>
<pre>{{ element.notes or "" }}</pre>
<h2>Properties</h2>
<ul>
<li>
{{ macros.media_element_buttons(element) }}
{{ macros.no_input_post_form("/api/refresh/media/" + element.id|string, "refresh") }}
</li>
<li>Can be considered: {{ element.can_considered | tenary("Yes", "no") }}</li>
<li>
Date:
{{ element.release_date }}
</li>
<li>
Length:
{{ element.length | timedelta }}
{%- if element.progress > 0 -%}
, Progress:
{{ element.progress | timedelta }}
{% endif %}
</li>
{% if element.all_tags %}
<li>
Tags: {{ element.all_tags | map(attribute="title") | join(" | ") }}
</li>
{% endif %}
{%- if link.episode != 0 -%}
, Episode {{ link.episode }}
{% endif %}
</li>
{% endfor %}
</ul>
<h2>Links</h2>
<ul>
{% for link in element.uris|sort(attribute="uri") %}
<li>{{ link.uri | as_link }} {% if element.uri == link.uri %}*{% endif %}</li>
{% endfor %}
</ul>
</ul>
<h2>Part of Collections</h2>
<ul>
{% for link in element.collection_links %}
<li>
<a href="{{ link.collection.info_link }}">{{ link.collection.title }}</a>
{%- if link.season != 0 -%}
, Season {{ link.season }}
{% endif %}
{%- if link.episode != 0 -%}
, Episode {{ link.episode }}
{% endif %}
</li>
{% endfor %}
</ul>
<h2>Links</h2>
<ul>
{% for link in element.uris|sort(attribute="uri") %}
<li>{{ link.uri | as_link }} {% if element.uri == link.uri %}*{% endif %}</li>
{% endfor %}
</ul>
</div>
</div>
</body>
</html>

Loading…
Cancel
Save