This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
Episodes.Community/Show/templates/show.html

64 lines
2.3 KiB
HTML
Raw Normal View History

2017-11-10 13:55:39 +00:00
{% extends "base.html" %}
2017-11-11 11:30:16 +00:00
{% block title %}
Watch {{show.name}} Now - on Episodes.Community!
{% endblock %}
{% block meta %}
{{ block.super }}
<meta property="og:title" content="{{show.name}}">
<meta property="og:type" content="video.tv_show">
2017-11-11 13:37:36 +00:00
<meta property="og:image" content="/media/uploaded_resources/{{show.artwork}}">
<meta property="og:url" content="https://{{show.abbr}}.episodes.community/">
{% endblock %}
2017-11-10 13:55:39 +00:00
{% block content %}
{% load guardian_tags %}
{% get_obj_perms request.user for show as "show_perms" %}
2017-11-10 13:55:39 +00:00
<section class="show-details">
<div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div>
<div class="banner-cover">
<div class="artwork">
<img src="/media/uploaded_resources/{{show.artwork}}">
</div>
<div class="details">
<h1>{{show.name}}</h1>
<p class="description">
{{show.description}}
</p>
<!--<div class="data">
<a class="imdb" href="{{show.imdb}}" target="_blank">IMDb Page</a>
<div class="stats">
<div class="param">Seasons</div>
<div class="value">{{seasons|length}}</div>
<div class="param">Episodes</div>
<div class="value">{{episodes|length}}</div>
</div>
</div>-->
</div>
</div>
</section>
<section class="seasons">
{% if "change_show" in show_perms %}
<a href="/show/{{show.abbr}}/season/new" class="button modbutton"><i class="fa fa-fw fa-plus"></i>&nbsp;Add a Season</a>
{% endif %}
2017-11-10 15:21:21 +00:00
<h1>Watch Now</h1>
2017-11-10 13:55:39 +00:00
{% for season in seasons %}
<div class="season" data-season="{{season.number}}">
{% if "change_show" in show_perms %}
<div class="actions">
<a href="/show/{{show.abbr}}/season/{{season.number}}/append" class="action"><i class="fa fa-fw fa-plus"></i></a>
</div>
{% endif %}
2017-11-10 13:55:39 +00:00
<div class="season-name">{% if season.name %}{{season.number}} - {{season.name}}{% else %}Season {{season.number}}{%endif%}</div>
<div class="episodes">
2017-11-10 15:21:21 +00:00
{% for episode in season.episodes.all %}
2017-11-11 10:53:25 +00:00
<a class="episode" data-season="{{season.number}}" data-number="{{episode.episode}}" data-title="{{episode.name}}" href="episode/{{season.number}}/{{episode.episode}}-{{episode.name|slugify}}">{{episode.episode}} - {{episode.name}}
2017-11-10 15:21:21 +00:00
<span class="submission_cnt">{{episode.submissions.all|length}} Available Links</span>
</a>
2017-11-10 13:55:39 +00:00
{% endfor %}
</div>
</div>
{% endfor %}
</section>
{% endblock %}