From: Guillaume Pellerin Date: Fri, 5 Jul 2013 07:50:33 +0000 (+0200) Subject: fix document filtering X-Git-Tag: 1.1~596 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=08d32857e84dc39b0ae1a17d5375027d52689564;p=teleforma.git fix document filtering --- diff --git a/teleforma/templates/teleforma/inc/conference_list.html b/teleforma/templates/teleforma/inc/conference_list.html index 453bf8fb..d57cb4ba 100644 --- a/teleforma/templates/teleforma/inc/conference_list.html +++ b/teleforma/templates/teleforma/inc/conference_list.html @@ -2,7 +2,7 @@ {% load i18n %} {% with course.conference.all|from_course_type:type as conferences %} -{% if conferences %} +{% if conferences|from_period:period %}

{% trans "Live conferences"%}

diff --git a/teleforma/templates/teleforma/inc/document_list.html b/teleforma/templates/teleforma/inc/document_list.html index 4d86e250..0abbbad5 100644 --- a/teleforma/templates/teleforma/inc/document_list.html +++ b/teleforma/templates/teleforma/inc/document_list.html @@ -1,7 +1,7 @@ {% load teleforma_tags %} {% load i18n %} -{% if course.document.all|from_course_type:type %} +{% if course.document.all|from_course_type:type|from_period:period %}

{% trans "Documents"%}

@@ -9,7 +9,7 @@ {% with course.document.all as docs %} {% for doc_type in doc_types %} -{% if docs|from_course_type:type|from_doc_type:doc_type and not type_counter > 2 %} +{% if docs|from_course_type:type|from_doc_type:doc_type|from_period:period and not type_counter > 2 %} {{ doc_type }} diff --git a/teleforma/templates/teleforma/inc/media_list.html b/teleforma/templates/teleforma/inc/media_list.html index 6c5e13b8..1578f3d0 100644 --- a/teleforma/templates/teleforma/inc/media_list.html +++ b/teleforma/templates/teleforma/inc/media_list.html @@ -2,7 +2,7 @@ {% load thumbnail %} {% load i18n %} -{% if course.media.all|from_course_type:type %} +{% if course.media.all|from_course_type:type|from_period:period %}

{% trans "Passed conferences"%}