]> git.0d.be Git - panikweb.git/commitdiff
make image in around nav a link to emission
authorFrédéric Péters <fpeters@0d.be>
Thu, 2 Apr 2020 08:03:31 +0000 (10:03 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 2 Apr 2020 08:03:31 +0000 (10:03 +0200)
panikweb_templates/static/css/_specifics.scss
panikweb_templates/templates/includes/around.html

index 979256abbc042d1b248aa378c47c4e1aa6ef5088..32cce0b1e89b93727983c456845002e7bf824a12 100644 (file)
@@ -2209,6 +2209,17 @@ div.around-nav {
                                margin-left: 1rem;
                                border: none;
                        }
+                       @media screen and (max-width: $mobile-limit) {
+                               height: 320px;
+                               overflow: hidden;
+                               div.emission-logo {
+                                       margin: 0;
+                               }
+                               img {
+                                       margin-left: 0;
+                                       float: none;
+                               }
+                       }
                }
        }
 }
index da20534f1a4e2ccc60b95f5d135c97658fdae3db..df0decc2269f3d168bccffd7603bc6b87c87e807 100644 (file)
@@ -21,7 +21,8 @@
     {% if slot.emission %}
     {% if slot.emission.image %}
         {% thumbnail slot.emission.image "600x300" crop="50% 25%" as im %}
-        <div class="emission-logo"><img class="logo" src="{{ im.url }}"/></div>
+        <a href="{% url 'emission-view' slug=slot.emission.slug %}"
+           ><div class="emission-logo"><img class="logo" src="{{ im.url }}"/></div></a>
         {% endthumbnail %}
     {% endif %}
     <p>{{slot.emission.text|safe}}</p>