From: Jérémy Fabre Date: Mon, 7 Nov 2016 11:02:51 +0000 (+0100) Subject: Home media shutter fix X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=22adcd2436d4fe66f15e1dd066747883a143406d;p=mezzo.git Home media shutter fix --- diff --git a/app/static/src/sass/pages/_home.scss b/app/static/src/sass/pages/_home.scss index dd3fafbb..50c04d12 100644 --- a/app/static/src/sass/pages/_home.scss +++ b/app/static/src/sass/pages/_home.scss @@ -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 { diff --git a/app/templates/media/inc/playlist_shutter.html b/app/templates/media/inc/playlist_shutter.html index 7844b48a..a5b993ef 100644 --- a/app/templates/media/inc/playlist_shutter.html +++ b/app/templates/media/inc/playlist_shutter.html @@ -1,25 +1,11 @@ {% load mezzanine_tags keyword_tags i18n organization_tags %} -
-
-

{% trans 'Audios' %}

-

{% trans 'View all the audio medias' %}

- {% trans 'See all audios >' %} -
-
- -
-
-

{% trans 'Videos' %}

-

{% trans 'View all the video medias' %}

- {% trans 'See all videos >' %} -
-
- - {% for media in home.dynamic_content_home_media.all|slice:":3" %}
+
+ {{media.content_object.type}} +

{{ media.content_object.title }}

{% if media.content_object.description %} @@ -32,11 +18,19 @@ {% endif %} {% endcomment %} - {% if media.content_object.type == 'video' %} - {% trans 'See the video' %} - {% elif media.content_object.type == 'audio' %} - {% trans 'Hear the sound' %} - {% endif %} + {% comment %} + {% if media.content_object.type == 'video' %} + {% trans 'See the video' %} + {% elif media.content_object.type == 'audio' %} + {% trans 'Hear the sound' %} + {% endif %} + {% endcomment %}
{% endfor %} + +
+ +

{% trans 'View all medias' %}

+
+