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.
122 lines
4.8 KiB
HTML
122 lines
4.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>
|
|
{{ macros.body_header() }}
|
|
<h1>{{ title }}</h1>
|
|
<h2>Properties</h2>
|
|
<ul>
|
|
{% set api_uri = "/api/collection/" + collection.id|string %}
|
|
<li>
|
|
{{ macros.post_form(api_uri, "mark_unmarked_as", "watched", "mark left as watched") }}
|
|
{{ macros.post_form(api_uri, "mark_unmarked_as", "ignored", "mark left as ignored") }}
|
|
{{ macros.post_form(api_uri, "reset_marks", "True", "reset marks") }}
|
|
{{ macros.post_form(api_uri, "reset_ignored_marks", "True", "reset ignored") }}
|
|
{{ macros.no_input_post_form("/api/refresh/collection/" + collection.id|string, "refresh") }}
|
|
</li>
|
|
{% if collection.has_creator and not collection.is_creator %}
|
|
<li>
|
|
Creator:
|
|
{{ macros.collection_entry_content(collection.creator) }}
|
|
</li>
|
|
{% endif %}
|
|
<li>
|
|
Pinned:
|
|
{{ collection.pinned | tenary("Yes", "no") }}
|
|
{{ macros.post_form(api_uri, "pinned", collection.pinned | tenary("false", "true"), "toggle") }}
|
|
</li>
|
|
<li>
|
|
Ignored:
|
|
{{ collection.ignored | tenary("Yes", "no") }}
|
|
{{ macros.post_form(api_uri, "ignored", collection.ignored | tenary("false", "true"), "toggle") }}
|
|
</li>
|
|
<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"), "toggle") }}
|
|
</li>
|
|
<li>
|
|
Keep Updated:
|
|
{{ collection.keep_updated | tenary("Yes", "no") }}
|
|
{{ macros.post_form(api_uri, "keep_updated", collection.keep_updated | tenary("false", "true"), "toggle") }}
|
|
</li>
|
|
{% set stats = collection.stats %}
|
|
<li>
|
|
Length:
|
|
{{ stats.full_seconds | timedelta }}
|
|
({{ stats.full_count }} elements)
|
|
</li>
|
|
<li>
|
|
To Watch:
|
|
{{ stats.to_watch_seconds | timedelta }}
|
|
({{ stats.to_watch_count }} elements)
|
|
</li>
|
|
{% if collection.average_release_per_week %}
|
|
<li>
|
|
Average Release:
|
|
{{ collection.average_release_per_week | timedelta }} per Week
|
|
</li>
|
|
{% endif %}
|
|
{% if collection.all_tags %}
|
|
<li>
|
|
Tags: {{ collection.all_tags | map(attribute="title") | sort | join(" | ") }}
|
|
</li>
|
|
{% endif %}
|
|
{% if collection.watch_in_order %}
|
|
<li>
|
|
Next Episode:
|
|
{% set link = collection.next_episode %}
|
|
{% if link %}
|
|
{{ macros.link_entry_content(link, show_fragment=False) }}
|
|
{% else %}
|
|
no next episode
|
|
{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
{% if collection.description != None %}
|
|
<div class="description">{{ collection.description }}</div>
|
|
{% endif %}
|
|
<h2>Notes</h2>
|
|
<pre>{{ collection.notes or "" }}</pre>
|
|
<h2>Links</h2>
|
|
<ul>
|
|
{% for link in collection.uri_set|sort %}
|
|
<li>{{ link | as_link }} {% if collection.is_primary_uri(link) %}*{% endif %}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% if collection.created_collections %}
|
|
<h2>Collections</h2>
|
|
<ul>
|
|
{% for coll in collection.created_collections|sort(attribute="title") %}
|
|
{% if coll != collection %}
|
|
<li>
|
|
{{ coll.id }}: <a href="{{ coll.info_link }}">{{ coll.title }}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% if not media_links %}
|
|
<p>
|
|
<a href="{{ collection.info_link }}/episodes">List episodes</a>
|
|
</p>
|
|
{% else %}
|
|
<h2>Episodes</h2>
|
|
{{ macros.media_thumbnail_list(
|
|
links=media_links,
|
|
check_considered=True,
|
|
link_collection=False,
|
|
titles=media_titles,
|
|
) }}
|
|
{% endif %}
|
|
</body>
|
|
</html>
|