From: Guillaume Pellerin Date: Thu, 21 Apr 2016 10:17:23 +0000 (+0200) Subject: update category display X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=090d09a95a35b93560280c9a67210b06f5e335d0;p=mezzo.git update category display --- diff --git a/app/festival/templates/festival/video_list.html b/app/festival/templates/festival/video_list.html index e971c2ca..9d36a6fd 100644 --- a/app/festival/templates/festival/video_list.html +++ b/app/festival/templates/festival/video_list.html @@ -9,11 +9,14 @@ {% block main %} {% if categories %} -

{% trans "Categories" %} : +

+
{% elif category %}

{% trans "Videos for the category" %} : {{ category }}

{% endif %} diff --git a/app/locale/fr/LC_MESSAGES/django.mo b/app/locale/fr/LC_MESSAGES/django.mo index 9a60f99d..aa382bfd 100644 Binary files a/app/locale/fr/LC_MESSAGES/django.mo and b/app/locale/fr/LC_MESSAGES/django.mo differ diff --git a/app/locale/fr/LC_MESSAGES/django.po b/app/locale/fr/LC_MESSAGES/django.po index c27d13f7..d4854ed0 100644 --- a/app/locale/fr/LC_MESSAGES/django.po +++ b/app/locale/fr/LC_MESSAGES/django.po @@ -341,20 +341,20 @@ msgstr "Auteur:" #: templates/agenda/event_list.html:49 msgid "Viewing events tagged" -msgstr "" +msgstr "Événements pour le mot clé" #: templates/agenda/event_list.html:51 #: templates/agenda/includes/event_location.html:14 msgid "Viewing events for the location" -msgstr "Les événements du lieu" +msgstr "Événements du lieu" #: templates/agenda/event_list.html:54 templates/agenda/event_list.html:56 msgid "Viewing events from" -msgstr "Les événements du" +msgstr "Événements du" #: templates/agenda/event_list.html:59 msgid "Viewing events by" -msgstr "Les événements par" +msgstr "Événements par" #: templates/agenda/event_location_list.html:4 #: templates/agenda/event_location_list.html:22 diff --git a/app/templates/agenda/event_list.html b/app/templates/agenda/event_list.html index 596a8e7c..3b1f6608 100644 --- a/app/templates/agenda/event_list.html +++ b/app/templates/agenda/event_list.html @@ -46,7 +46,7 @@ {% block event_list_filterinfo %}

{% if tag %} - {% trans "Viewing events tagged" %} {{ tag }} + {% trans "Viewing events tagged" %} {{ tag }} {% elif location %} {% trans "Viewing events for the location" %} {{ location }} {% elif year or month %} @@ -66,6 +66,25 @@ {% block event_list_pagecontent %} {{ page.richtextpage.content|richtext_filters|safe }} {% endblock %} + {% else %} + + {% block event_keywords %} + {% keywords_for mezzanine_agenda.event as tags %} + {% if tags %} + +

+
+ {% endif %} + {% endblock %} + {% endif %} {% endif %} diff --git a/app/templates/agenda/includes/event_card.html b/app/templates/agenda/includes/event_card.html index 8db6e372..6ba39ca1 100644 --- a/app/templates/agenda/includes/event_card.html +++ b/app/templates/agenda/includes/event_card.html @@ -43,6 +43,7 @@ {% endblock %} +{% comment %} {% block event_list_event_links %}
{% keywords_for event as tags %} @@ -73,4 +74,6 @@

{% endblock %} +{% endcomment %} + diff --git a/app/templates/blog/blog_post_list.html b/app/templates/blog/blog_post_list.html index ac3abe9c..eacc5027 100644 --- a/app/templates/blog/blog_post_list.html +++ b/app/templates/blog/blog_post_list.html @@ -49,7 +49,7 @@ {% if tag %} {% trans "Viewing posts tagged" %} {{ tag }} {% else %}{% if category %} - {% trans "Viewing posts for the category" %} {{ category }} + {% trans "Viewing posts for the category" %} {{ category }} {% else %}{% if year or month %} {% trans "Viewing posts from" %} {% if month %}{{ month }}, {% endif %} {{ year }} @@ -69,11 +69,14 @@ {% else %} {% blog_categories as categories %} {% if categories %} -

{% trans "Categories" %} : +

+
{% endif %} {% endif %} {% endif %}