]> git.0d.be Git - panikweb-studioneau.git/commitdiff
add backlinks
authorFrédéric Péters <fpeters@0d.be>
Thu, 17 Jun 2021 10:20:43 +0000 (12:20 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 17 Jun 2021 10:32:30 +0000 (12:32 +0200)
panikweb_studioneau/static/css/back-to-emission.png [new file with mode: 0644]
panikweb_studioneau/static/css/style.scss
panikweb_studioneau/templates/emissions/emission_detail.html
panikweb_studioneau/templates/emissions/episode_detail.html

diff --git a/panikweb_studioneau/static/css/back-to-emission.png b/panikweb_studioneau/static/css/back-to-emission.png
new file mode 100644 (file)
index 0000000..83f92fd
Binary files /dev/null and b/panikweb_studioneau/static/css/back-to-emission.png differ
index 159980290a956fa3e37d0553457278106ad7b7b3..f9259444f05cc9d63f61e07e34590709aead7ca3 100644 (file)
@@ -344,6 +344,17 @@ ul.collection {
        }
 }
 
+.episodes ul.collection h3 a {
+       background: none;
+       padding-bottom: 0;
+       span.diffusion-date {
+               display: block;
+               font-weight: normal;
+               font-size: 14px;
+               padding-top: 3px;
+       }
+}
+
 .tags {
        margin-bottom: 10px;
        a {
@@ -477,6 +488,7 @@ ul.collection {
 }
 
 .innest-page {
+       position: relative;
        width: 80%;
        max-width: 700px;
        box-sizing: border-box;
@@ -520,3 +532,14 @@ ul.collection {
                }
        }
 }
+
+a.back {
+       position: absolute;
+       right: 20px;
+       top: 10px;
+       background: url(back-to-emission.png) top left no-repeat;
+       width: 50px;
+       height: 49px;
+       overflow: hidden;
+       text-indent: -1000px;
+}
index 64f7cdf49ac17b0b5615102122bac9a595d59800..dde6a28ce96c6ec32da703c9029fd900aff93a35 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "emissions/emission_detail.html" %}
-{% load thumbnail paniktags %}
+{% load i18n thumbnail paniktags %}
 
 {% block main %}
 
@@ -14,6 +14,7 @@
 <div class="inner-page">
 
 <div class="innest-page">
+<a class="back" title="{% trans "Back to home" %}" href="{% url 'home' %}">{% trans "Back to home" %}</a>
 {% include "includes/tags.html" with object=emission %}
 
 <h1>{{ emission.title }}{% if emission.subtitle %}<br>{{ emission.subtitle }}{% endif %}</h1>
 </div>
 </div>
 
+{% if all_episodes.exists %}
+<div class="episodes">
+<h2>{% trans "Shows" %}</h2>
+<ul class="collection">
+ {% for episode in all_episodes|slice:":6" %}
+ <li>{% episode_resume %}</li>
+ {% endfor %}
+</ul>
+</div>
+{% endif %}
+
 
 <div class="other-emissions">
 
index 0ebec9aeccb4ac7d9514cf5924bd0bec1ec1240c..c9fb6854ee1f22893bc98ef013c6f030e7e40d4c 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "emissions/emission_detail.html" %}
-{% load thumbnail paniktags %}
+{% load i18n thumbnail paniktags %}
 
 {% block main %}
 
@@ -20,6 +20,7 @@
 <div class="inner-page">
 
 <div class="innest-page">
+<a class="back" title="{% trans "Back to emission" %}" href="{% url 'emission-view' slug=episode.emission.slug %}">{% trans "Back to emisision" %}</a>
 {% include "includes/tags.html" with object=emission %}
 <h1>{{ emission.title }}<br>
         {{ episode.title }}{% if episode.subtitle %}<br>{{ episode.subtitle }}{% endif %}</h1>