2017-11-10 15:21:21 +00:00
{% extends "base.html" %}
2017-11-11 13:33:27 +00:00
2017-11-11 11:30:16 +00:00
{% block title %}
Episode "{{episode.name}}" - S{{episode.season.number}}E{{episode.episode}} - {{show.name}} - Episodes.Community
{% endblock %}
2017-11-11 13:33:27 +00:00
{% block meta %}
{{ block.super }}
< meta property = "og:title" content = "{{episode.name}}" >
< meta property = "og:type" content = "video.episode" >
< meta property = "og:video:series" content = "{{show.name}}" >
< meta property = "og:image" content = "/media/uploaded_resources/{{show.banner}}" >
< meta property = "og:url" content = "https://{{show.abbr}}.episodes.community/episode/{{episode.season.number}}/{{episode.episode}}-{{episode.name|slugify}}" >
{% endblock %}
2017-11-10 15:21:21 +00:00
{% block content %}
< 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 >
< / div >
< / section >
< section class = "submissions" >
2017-11-11 12:57:52 +00:00
< a href = "/show/{{show.abbr}}" class = "button" > < i class = "fa fa-fw fa-home" > < / i > Show Index< / a >
{% if request.session.user_id %}
< a href = "/show/{{show.abbr}}/episode/{{episode.season.number}}/{{episode.episode}}/submit" class = "button" > < i class = "fa fa-fw fa-plus" > < / i > Submit New Link< / a >
2017-11-11 13:33:27 +00:00
{% else %}
< span class = "fillertext" > < a href = "/login" > Log in< / a > to submit a link< / span >
2017-11-11 12:57:52 +00:00
{% endif %}
2017-11-10 15:21:21 +00:00
< h1 > Watch < q > {{episode.name}}< / q > From< / h1 >
< div class = "submission-list" >
{% for sbm in submissions %}
2017-11-10 15:47:45 +00:00
< div class = "submission{% if sbm.positives < sbm.negatives %} buried{% endif %}" >
2017-11-11 09:24:39 +00:00
< a href = "{{sbm.url}}" class = "link" > < i class = "fa fa-fw fa-globe" > < / i > {{sbm.url}}< / a >
< div class = "vote-btns" data-vote-id = "{{sbm.id}}" >
< a href = "/show/{{show.abbr}}/vote/{{sbm.id}}/1" class = "vote-positive" >
< i class = "fa fa-fw fa-thumbs-up" > < / i > {{sbm.positives}}
< / a >
< a href = "/show/{{show.abbr}}/vote/{{sbm.id}}/0" class = "vote-negative" >
< i class = "fa fa-fw fa-thumbs-down" > < / i > {{sbm.negatives}}
< / a >
2017-11-10 15:21:21 +00:00
< / div >
2017-11-10 15:47:45 +00:00
< / div >
{% empty %}
< h3 > Nobody has submitted any links yet.< / h3 >
2017-11-10 15:21:21 +00:00
{% endfor %}
< / div >
< / section >
{% endblock %}