Commit f57f3c03 authored by Simon Daron's avatar Simon Daron
Browse files

Conditionnal comments for unused episode fields & logo

parent 8c80da9c
......@@ -17,11 +17,11 @@
{{ episode.first_diffusion|date:"H:i" }}
</span>
</div>
{% if episode.image %}
<div class="logo right">
{% if episode.image %}
<img width="50" height="50" src="{{ episode.image|thumbnail:'50x50' }}"/>
{% endif %}
</div>
{% endif %}
<div class="content">
<a class="block" href="{{ episode.slug }}">
<h5 class="title ellipsis">{{ episode.title }}</h5>
......
{% load soundfiles %}
{% load thumbnails %}
{% load paniktags %}
<div class="episode resume episode-resume cf">
<div class="date dateBloc">
......@@ -24,9 +24,11 @@
<br /><button class="big symbol buy">C</button>
</div>
-->
{% if episode.image %}
<div class="logo">
<img src="http://placehold.it/100X100" />
<img width="100" height="100" src="{{ episode.image|thumbnail:'100x100' }}"/>
</div>
{% endif %}
<div class="content">
<h5 class="title"><a href="{{ episode.slug }}">{{ episode.title }}</a></h5>
......@@ -40,13 +42,13 @@
</article>
{% endif %}
<div class="metas">
<!--
{% if episode.serie or episode.auteur or episode.redif %}
<dl class="credits cf">
<dt>Serie</dt><dd>La musique</dd>
<dt>Auteur</dt><dd>Jean Dupont</dd>
<dt>Rediffusion</dt><dd>Émission de JetFM</dd>
{% if episode.serie %}<dt>Serie</dt><dd>{{ serie }}</dd>{% endif %}
{% if episode.auteur %}<dt>Auteur</dt><dd>{{ auteur }}</dd>{% endif %}
{% if episode.redif %}<dt>Redifusion</dt><dd>{{ redif }}</dd>{% endif %}
</dl>
-->
{% endif %}
{% if episode.tagList %}
<ul class="custom inline">
{% for tag in episode.tagList %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment