From 08d32857e84dc39b0ae1a17d5375027d52689564 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 5 Jul 2013 09:50:33 +0200 Subject: [PATCH] fix document filtering --- teleforma/templates/teleforma/inc/conference_list.html | 2 +- teleforma/templates/teleforma/inc/document_list.html | 4 ++-- teleforma/templates/teleforma/inc/media_list.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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"%}

-- 2.39.5