]> git.parisson.com Git - mezzo.git/commitdiff
Home media shutter fix
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 7 Nov 2016 11:02:51 +0000 (12:02 +0100)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Mon, 7 Nov 2016 11:02:51 +0000 (12:02 +0100)
app/static/src/sass/pages/_home.scss
app/templates/media/inc/playlist_shutter.html

index dd3fafbbd65e8ba9b556fdf3a8015cd8a4a4b5da..50c04d12ad498d83309d23093dc990d3e80caec4 100644 (file)
@@ -150,6 +150,22 @@ $module: ".home";
 
         }
 
+        &--button {
+
+            border: 2px solid black;
+            text-align: center;
+            @include padding(2);
+
+            >h2 {
+                margin: 0;
+                @include font-size(xl);
+                @include line-height(1.2);
+                font-weight: weight(bold);
+                text-transform: uppercase;
+            }
+
+        }
+
     }
 
     &__menu-item {
index 7844b48a9ce7e2bdacd37cb3fdd414a3c6d3ebfb..a5b993eff19514206ba59c79aa9441efb82c0aef 100644 (file)
@@ -1,25 +1,11 @@
 {% load mezzanine_tags keyword_tags i18n organization_tags %}
 
-<div class="col-xs-3">
-    <div class="home__shutter-item">
-        <h2><a href="{% url 'organization-playlist-list' 'audio' %}" title="">{% trans 'Audios' %}</a></h2>
-        <p>{% trans 'View all the audio medias' %}</p>
-        <a href="{% url 'organization-playlist-list' 'audio' %}" title="">{% trans 'See all audios >' %}</a>
-    </div>
-</div>
-
-<div class="col-xs-3">
-    <div class="home__shutter-item">
-        <h2><a href="{% url 'organization-playlist-list' 'video' %}" title="">{% trans 'Videos' %}</a></h2>
-        <p>{% trans 'View all the video medias' %}</p>
-        <a href="{% url 'organization-playlist-list' 'video' %}" title="">{% trans 'See all videos >' %}</a>
-    </div>
-</div>
-
-
 {% for media in home.dynamic_content_home_media.all|slice:":3" %}
     <div class="col-xs-3">
         <div class="home__shutter-item">
+            <div class="fss">
+                {{media.content_object.type}}
+            </div>
             <h2><a href="{{ media.content_object.get_absolute_url }}" title="">{{ media.content_object.title }}</a></h2>
 
             {% if media.content_object.description %}
                 {% endif %}
             {% endcomment %}
 
-            {% if media.content_object.type == 'video' %}
-                <a href="{{ media.content_object.get_absolute_url }}" title="">{% trans 'See the video' %}</a>
-            {% elif media.content_object.type == 'audio' %}
-                <a href="{{ media.content_object.get_absolute_url }}" title="">{% trans 'Hear the sound' %}</a>
-            {% endif %}
+            {% comment %}
+                {% if media.content_object.type == 'video' %}
+                    <a href="{{ media.content_object.get_absolute_url }}" title="">{% trans 'See the video' %}</a>
+                {% elif media.content_object.type == 'audio' %}
+                    <a href="{{ media.content_object.get_absolute_url }}" title="">{% trans 'Hear the sound' %}</a>
+                {% endif %}
+            {% endcomment %}
         </div>
     </div>
 {% endfor %}
+
+<div class="col-xs-3">
+    <a href="{% url 'organization-playlist-list' 'video' %}" title="{% trans 'View all medias' %}" class="home__shutter-item home__shutter-item--button">
+        <h2>{% trans 'View all medias' %}</h2>
+    </div>
+</div>