]> git.0d.be Git - panikdb.git/commitdiff
add icon next to episodes with an image
authorFrédéric Péters <fpeters@0d.be>
Thu, 4 Aug 2022 12:08:42 +0000 (14:08 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 4 Aug 2022 12:08:42 +0000 (14:08 +0200)
panikdb/static/css/style.scss
panikdb/templates/home.html

index b3ca1e195fdef6625ffbb72e30e0281d5e64176a..e6a15e66a1b4f577e0e654be77b58d4011b8287b 100644 (file)
@@ -414,6 +414,7 @@ a [class^="icon-"], a [class*=" icon-"] {
 .icon-forums::before              { content: "\f0e6 "; }
 .icon-regie::before              { content: "\f130 "; }
 .icon-download::before            { content: "\f019 "; }
+.icon-image::before { content: "\f03e "; }
 
 .icon-circle-arrow-down:after     { content: "  \f0ab"; }
 .icon-arrow-left:after            { content: "\f060"; }
index 0e065dd2773a7a20f1daecc1e821d7a761ca47c0..2ab0d03522cfc67132270248e5c8d83ce1573b45 100644 (file)
@@ -87,6 +87,7 @@
 {% for episode in emission.get_sorted_episodes|slice:":5" %}
 <li>{{ episode.first_diffusion|date:"d E o H:i"|lower }}
 <br/>   <a href="{% url 'episode-view' emission_slug=emission.slug slug=episode.slug %}">{{ episode.title }}</a>
+{% if episode.image %}<span class="icon-image"></span>{%endif%}
 {% if episode.has_sound %}<span class="icon-music"/>{%endif%}
 </li>
 {% endfor %}