From: Guillaume Pellerin Date: Tue, 4 Aug 2015 20:39:12 +0000 (+0200) Subject: fix links when no script.file X-Git-Tag: 1.1~189 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9b20a36287e36fd46d0f535e7773950520939789;p=teleforma.git fix links when no script.file --- 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 }}