From f1209693ef7cd0781c00219d5b3bce1a10e45081 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 13 Apr 2016 10:56:57 +0200 Subject: [PATCH] add date to post card --- app/festival/static/css/index.css | 18 +++++++++++++++--- .../static/scss/modules/artist-card.scss | 13 ++++++++++++- app/templates/blog/includes/post_card.html | 1 + lib/mezzanine-agenda | 2 +- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/app/festival/static/css/index.css b/app/festival/static/css/index.css index 5f8aa370..2e756e60 100755 --- a/app/festival/static/css/index.css +++ b/app/festival/static/css/index.css @@ -2957,20 +2957,32 @@ th { font: 700 0.7rem "Interstate", "Helvetica Neue", Helvetica, Arial, sans-serif; } -/* line 88, /home/yomguy/dev/IRCAM/Manifeste/app/festival/static/scss/modules/artist-card.scss */ +/* line 86, /home/yomguy/dev/IRCAM/Manifeste/app/festival/static/scss/modules/artist-card.scss */ +.artist__item__date { + display: block; + width: 100%; + padding: 0rem; + text-align: center; + background: white; + margin: 0; + font-size: 0.85rem; + color: #888; +} + +/* line 99, /home/yomguy/dev/IRCAM/Manifeste/app/festival/static/scss/modules/artist-card.scss */ .artist__figure { position: relative; padding: 0; margin: 0; } -/* line 92, /home/yomguy/dev/IRCAM/Manifeste/app/festival/static/scss/modules/artist-card.scss */ +/* line 103, /home/yomguy/dev/IRCAM/Manifeste/app/festival/static/scss/modules/artist-card.scss */ .artist__figure img { display: block; position: relative; } -/* line 97, /home/yomguy/dev/IRCAM/Manifeste/app/festival/static/scss/modules/artist-card.scss */ +/* line 108, /home/yomguy/dev/IRCAM/Manifeste/app/festival/static/scss/modules/artist-card.scss */ .artist__figure__copyright { position: absolute; bottom: 0; diff --git a/app/festival/static/scss/modules/artist-card.scss b/app/festival/static/scss/modules/artist-card.scss index 0c3bd2b7..1d1e565e 100644 --- a/app/festival/static/scss/modules/artist-card.scss +++ b/app/festival/static/scss/modules/artist-card.scss @@ -83,6 +83,17 @@ } } } + &__date { + display: block; + width: 100%; + padding: 0rem; + text-align: center; + // text-transform: uppercase; + background: white; + margin: 0; + font-size: 0.85rem; + color: #888; + } } .artist__figure { @@ -106,4 +117,4 @@ color: white; text-shadow: 1px 1px 1px $black; } - } \ No newline at end of file + } diff --git a/app/templates/blog/includes/post_card.html b/app/templates/blog/includes/post_card.html index 3b034c79..0bc60a18 100644 --- a/app/templates/blog/includes/post_card.html +++ b/app/templates/blog/includes/post_card.html @@ -11,6 +11,7 @@ {{ post.title }} + {{ post.publish_date|date:"DATE_FORMAT" }} diff --git a/lib/mezzanine-agenda b/lib/mezzanine-agenda index 82474879..304ae3fe 160000 --- a/lib/mezzanine-agenda +++ b/lib/mezzanine-agenda @@ -1 +1 @@ -Subproject commit 8247487936cf09627ac29428e16fd438c2a27a4d +Subproject commit 304ae3fe4e626ae777cc73f60334f45d479cab66 -- 2.39.5