]> git.parisson.com Git - mezzo.git/commitdiff
use featured for breaking news
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 22 Apr 2016 10:06:09 +0000 (12:06 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 22 Apr 2016 10:06:09 +0000 (12:06 +0200)
app/festival/templatetags/festival_tags.py
app/local_settings.py
app/locale/fr/LC_MESSAGES/django.mo
app/locale/fr/LC_MESSAGES/django.po
app/templates/base.html

index 8b2d94ecdd9ceda616ec98c3d9c23dc3dd7201d3..25e4ca5688dcbe283cdad7091df24408e460abb9 100644 (file)
@@ -28,3 +28,8 @@ def featured_events(*args):
 @register.as_tag
 def featured(*args):
     return Featured.objects.get(id=settings.HOME_FEATURED_ID)
+
+
+@register.as_tag
+def featured_breaking_news_content(*args):
+    return Featured.objects.get(id=settings.BREAKING_NEWS_FEATURED_ID).pages.all()[0].richtextpage.content
index a9b40403cca51c72ce7adf666e05d67fb2fff6f2..5f6713e25a3cd45246511ea33bea1a383c187597 100644 (file)
@@ -109,3 +109,4 @@ TINYMCE_SETUP_JS = "/static/js/tinymce_setup.js"
 SLUGIFY = 'django.template.defaultfilters.slugify'
 
 HOME_FEATURED_ID = 1
+BREAKING_NEWS_FEATURED_ID = 4
index cc0c7bb7e5752df2be2a7848590b1378d553babf..4551d13e1e33c23562431e223003c16090a6cace 100644 (file)
Binary files a/app/locale/fr/LC_MESSAGES/django.mo and b/app/locale/fr/LC_MESSAGES/django.mo differ
index 2fb0f1b0366ef27501891cd93c3d00b78e1430f2..95fbee2162ea718808d56bd43980c1d8462d4eae 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-04-22 10:44+0200\n"
+"POT-Creation-Date: 2016-04-22 12:05+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -377,7 +377,15 @@ msgstr "Événements récents"
 msgid "Archive"
 msgstr ""
 
-#: templates/base.html:167
+#: templates/base.html:136
+msgid "Dernière"
+msgstr "Breaking"
+
+#: templates/base.html:136
+msgid "minute"
+msgstr "news"
+
+#: templates/base.html:165
 msgid "Playlist"
 msgstr "Playlist"
 
@@ -386,6 +394,7 @@ msgid "published on"
 msgstr "publié le"
 
 #: templates/blog/blog_post_detail.html:119
+#: templates/pages/richtextpage.html:27
 msgid "Related posts"
 msgstr "Articles associés"
 
@@ -690,7 +699,7 @@ msgstr "Soumettre"
 msgid "Add"
 msgstr ""
 
-#: templates/pages/richtextpage.html:14
+#: templates/pages/richtextpage.html:17
 msgid "Related events"
 msgstr "Événements associés"
 
index d407d520316a16f9fe91ed3de3457c7b60449502..8b5b13f3c15694413038c547d22e36e17d722476 100644 (file)
                         <div class="media bk__news__inner">
                             <div class="media-img">
                                 <span class="bk__news__title">
-                                    Dernière <br> minute !
+                                    {% trans "Dernière" %} <br> {% trans "minute" %} !
                                 </span>
                             </div>
                             <div class="media-content bk__news__content">
-                                <p>
-                                    <strong>Partagez, twittez, commentez, publiez vos photos…</strong> <br>
-                                    et réservez dès maintenant vos places ou abonnements pour bénéficier de tarifs privilégiés.
-                                </p>
+                                    {% featured_breaking_news_content as content %}
+                                    {{ content|safe }}
                             </div>
 
                         </div>