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

57 lines
1.9 KiB
HTML
Raw Permalink 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" %}
{% 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>
<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 %}
<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 %}
<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>
{% 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>
</div>
{% endif %}
</div>
2017-11-10 13:55:39 +00:00
{% endfor %}
{% 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>&nbsp;Add a Season</a>
</div>
{% endif %}
2017-11-10 13:55:39 +00:00
</section>
{% endblock %}