]> git.parisson.com Git - teleforma.git/commitdiff
fix document filtering
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 5 Jul 2013 07:50:33 +0000 (09:50 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 5 Jul 2013 07:50:33 +0000 (09:50 +0200)
teleforma/templates/teleforma/inc/conference_list.html
teleforma/templates/teleforma/inc/document_list.html
teleforma/templates/teleforma/inc/media_list.html

index 453bf8fb0373c5d234339e97b417164a7d79b43c..d57cb4baab139bc286e441ec830fad523c8549bc 100644 (file)
@@ -2,7 +2,7 @@
 {% load i18n %}
 
 {% with course.conference.all|from_course_type:type as conferences %}
-{% if conferences %}
+{% if conferences|from_period:period %}
 <div class="course_content">
 <div class="course_subtitle">
     <h3><img src="{{ STATIC_URL }}telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Live conferences"%}</h3>
index 4d86e25010dca067cf4f9b8966d6138ca4cd4a73..0abbbad5e330ab089edb32d8be57c578deab12d5 100644 (file)
@@ -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 %}
 <div class="course_content">
 <div class="course_subtitle">
 <h3><img src="{{ STATIC_URL }}/telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Documents"%}</h3>
@@ -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 %}
 <span class="doc_type_title">{{ doc_type }}</span>
 <table class="listing" width="100%">
     <tbody>
index 6c5e13b824201094786da76453adbe4b7a07c230..1578f3d0fcd3e2a49db394630ddd981786dfc967 100644 (file)
@@ -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 %}
 <div class="course_content">
 <div class="course_subtitle">
     <h3><img src="{{ STATIC_URL }}telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Passed conferences"%}</h3>