Use season info on the banner on an episode page

This commit is contained in:
Evert Prants 2017-12-26 19:11:18 +02:00
parent fa594518c3
commit 48a037439e
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
4 changed files with 39 additions and 9 deletions

View File

@ -136,6 +136,9 @@ section.show-details {
margin: 0; margin: 0;
font-size: 200%; font-size: 200%;
} }
.show-details .details.season h3 {
margin-top: 0;
}
.show-details .details .description { .show-details .details .description {
width: 80%; width: 80%;
} }

View File

@ -20,12 +20,21 @@
<div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div> <div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div>
<div class="banner-cover"> <div class="banner-cover">
<div class="artwork"> <div class="artwork">
<img src="/media/uploaded_resources/{{show.artwork}}"> {% if episode.season.artwork %}
<img src="/media/uploaded_resources/{{episode.season.artwork}}">
{% else %}
<img src="/media/uploaded_resources/{{show.artwork}}">
{% endif %}
</div> </div>
<div class="details"> <div class="details season">
<h1>{{show.name}}</h1> <h1>{{show.name}}</h1>
{% if episode.season.name %}
<h3>{{ episode.season.name }}</h3>
{% else %}
<h3>Season {{ episode.season.number }}</h3>
{% endif %}
<p class="description"> <p class="description">
{{show.description}} {{ episode.season.description }}
</p> </p>
</div> </div>
</div> </div>

View File

@ -7,12 +7,21 @@
<div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div> <div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div>
<div class="banner-cover"> <div class="banner-cover">
<div class="artwork"> <div class="artwork">
<img src="/media/uploaded_resources/{{show.artwork}}"> {% if episode.season.artwork %}
<img src="/media/uploaded_resources/{{episode.season.artwork}}">
{% else %}
<img src="/media/uploaded_resources/{{show.artwork}}">
{% endif %}
</div> </div>
<div class="details"> <div class="details season">
<h1>{{show.name}}</h1> <h1>{{show.name}}</h1>
{% if episode.season.name %}
<h3>{{ episode.season.name }}</h3>
{% else %}
<h3>Season {{ episode.season.number }}</h3>
{% endif %}
<p class="description"> <p class="description">
{{show.description}} {{ episode.season.description }}
</p> </p>
</div> </div>
</div> </div>

View File

@ -7,12 +7,21 @@
<div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div> <div class="banner" style="background-image: url(/media/uploaded_resources/{{show.banner}});"></div>
<div class="banner-cover"> <div class="banner-cover">
<div class="artwork"> <div class="artwork">
<img src="/media/uploaded_resources/{{show.artwork}}"> {% if episode.season.artwork %}
<img src="/media/uploaded_resources/{{episode.season.artwork}}">
{% else %}
<img src="/media/uploaded_resources/{{show.artwork}}">
{% endif %}
</div> </div>
<div class="details"> <div class="details season">
<h1>{{show.name}}</h1> <h1>{{show.name}}</h1>
{% if episode.season.name %}
<h3>{{ episode.season.name }}</h3>
{% else %}
<h3>Season {{ episode.season.number }}</h3>
{% endif %}
<p class="description"> <p class="description">
{{show.description}} {{ episode.season.description }}
</p> </p>
</div> </div>
</div> </div>