From 9b20a36287e36fd46d0f535e7773950520939789 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 4 Aug 2015 22:39:12 +0200 Subject: [PATCH] fix links when no script.file --- teleforma/exam/templates/exam/inc/script_list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teleforma/exam/templates/exam/inc/script_list.html b/teleforma/exam/templates/exam/inc/script_list.html index d3892877..ee5f474b 100644 --- a/teleforma/exam/templates/exam/inc/script_list.html +++ b/teleforma/exam/templates/exam/inc/script_list.html @@ -24,9 +24,9 @@ {% for script in object_list %} - {% if script.status != 2 %}{% endif %}{{ script.course.title }}{% if script.status != 2 %}{% endif %} - {% if script.status != 2 %}{% endif %}{{ script.session }}{% if script.status != 2 %}{% endif %} - {% if script.status != 2 %}{% endif %}{{ script.type }}{% if script.status != 2 %}{% endif %} + {% if script.status != 2 and script.file %}{% endif %}{{ script.course.title }}{% if script.status != 2 and script.file %}{% endif %} + {% if script.status != 2 and script.file%}{% endif %}{{ script.session }}{% if script.status != 2 and script.file %}{% endif %} + {% if script.status != 2 and script.file %}{% endif %}{{ script.type }}{% if script.status != 2 and script.file %}{% endif %} {% if script.author.username %}{{ script.author.last_name }}{% endif %} {% if script.author.username %}{{ script.author.first_name }}{% endif %} {{ script.date_added }} -- 2.39.5