You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.8 KiB
HTML
72 lines
2.8 KiB
HTML
{% import "macros.htm" as macros %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
{% set title = collection.title %}
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>{{ title }}</title>
|
|
{{ macros.shared_style() }}
|
|
</head>
|
|
<body>
|
|
<a href="/collection"><- back to list</a>
|
|
<h1>{{ title }}</h1>
|
|
<h2>Properties</h2>
|
|
<ul>
|
|
{% set api_uri = "/api/collection/" + collection.id|string %}
|
|
<li>
|
|
Watch In Order:
|
|
{{ collection.watch_in_order | tenary("Yes", "no") }}
|
|
{%- if collection.watch_in_order_auto %} (automatic){% endif %}
|
|
{{ macros.post_form(api_uri, "watch_in_order", collection.watch_in_order | tenary("false", "true"), "umschalten") }}
|
|
</li>
|
|
<li>
|
|
Keep Updated:
|
|
{{ collection.keep_updated | tenary("Yes", "no") }}
|
|
{{ macros.post_form(api_uri, "keep_updated", collection.watch_in_order | tenary("false", "true"), "umschalten") }}
|
|
</li>
|
|
{% if collection.watch_in_order %}
|
|
<li>
|
|
Next Episode:
|
|
{% set link = collection.next_episode %}
|
|
{% if link %}
|
|
{{ macros.media_element_buttons(link.element) }}
|
|
<a href="{{ link.element.info_link }}">{{ link.element.title }}</a>
|
|
{%- if link.season != 0 -%}
|
|
, Season {{ link.season }}
|
|
{% endif %}
|
|
{%- if link.episode != 0 -%}
|
|
, Episode {{ link.episode }}
|
|
{% endif %}
|
|
{% else %}
|
|
no next episode
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
<h2>Notes</h2>
|
|
<pre>{{ collection.notes or "" }}</pre>
|
|
<h2>Episodes</h2>
|
|
<ul>
|
|
{% for link in media_links %}
|
|
<li id="media_element_{{ link.element.id }}">
|
|
{{ macros.media_element_buttons(link.element) }}
|
|
{{ link.element.release_date.strftime("%d.%m.%Y") }}
|
|
<a href="{{ link.element.info_link }}">{{ link.element.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 collection.uris %}
|
|
<li>{{ link.uri | as_link }} {% if collection.uri == link.uri %}*{% endif %}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</body>
|
|
</html>
|