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 %}
|
2017-11-11 13:33:27 +00:00
|
|
|
|
|
|
|
{% 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}}">
|
2017-11-11 13:33:27 +00:00
|
|
|
<meta property="og:url" content="https://{{show.abbr}}.episodes.community/">
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-11-10 13:55:39 +00:00
|
|
|
{% block content %}
|
2017-12-15 11:33:01 +00:00
|
|
|
{% load guardian_tags %}
|
|
|
|
{% get_obj_perms request.user for show as "show_perms" %}
|
2018-02-27 17:49:45 +00:00
|
|
|
{% include "partials/show_banner.html" %}
|
|
|
|
<section class="mb-5 mt-2 container">
|
|
|
|
<nav aria-label="breadcrumb">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item active" aria-current="page">{{show.name}}</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2018-03-02 09:59:44 +00:00
|
|
|
<p>Discuss {{show.name}} on the <a href="discuss">discussion boards</a>!</p>
|
2017-11-10 13:55:39 +00:00
|
|
|
{% for season in seasons %}
|
2018-02-27 17:49:45 +00:00
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-md-2 mb-2">
|
|
|
|
<h2>{% if season.name %}{{season.number}} - {{season.name}}{% else %}Season {{season.number}}{%endif%}</h2>
|
|
|
|
</div>
|
|
|
|
<div class="col-md">
|
2017-11-10 13:55:39 +00:00
|
|
|
<div class="episodes">
|
2017-11-10 15:21:21 +00:00
|
|
|
{% for episode in season.episodes.all %}
|
2018-02-27 17:49:45 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md">
|
|
|
|
<h3>
|
|
|
|
<a class="d-block" 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}}</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-10 13:55:39 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-27 17:49:45 +00:00
|
|
|
{% if "can_moderate_show" in show_perms %}
|
|
|
|
<div class="col-md-1 text-md-right">
|
2018-03-02 13:46:25 +00:00
|
|
|
<a href="{{show.url}}/season/{{season.number}}/append" class="action"><i class="fa fa-fw fa-plus"></i></a>
|
2018-02-27 17:49:45 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2017-11-10 13:55:39 +00:00
|
|
|
{% endfor %}
|
2018-02-27 17:49:45 +00:00
|
|
|
{% if "can_moderate_show" in show_perms %}
|
|
|
|
<div class="d-flex flex-row-reverse">
|
2018-03-02 13:46:25 +00:00
|
|
|
<a href="{{show.url}}/season/new" class="btn btn-warning"><i class="fa fa-fw fa-plus"></i> Add a Season</a>
|
2018-02-27 17:49:45 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-11-10 13:55:39 +00:00
|
|
|
</section>
|
|
|
|
{% endblock %}
|