From 5271eb3f7d83c5fd0355cb57dca1a6fa53494838 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 30 Jan 2015 14:08:07 +0100 Subject: [PATCH] fix no author --- teleforma/exam/templates/exam/inc/script_list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/exam/templates/exam/inc/script_list.html b/teleforma/exam/templates/exam/inc/script_list.html index 0ce9d112..622533c3 100644 --- a/teleforma/exam/templates/exam/inc/script_list.html +++ b/teleforma/exam/templates/exam/inc/script_list.html @@ -27,8 +27,8 @@ {% 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 %} - {{ script.author.last_name }} - {{ script.author.first_name }} + {% if script.author.username %}{{ script.author.last_name }}{% endif %} + {% if script.author.username %}{{ script.author.first_name }}{% endif %} {{ script.date_added }} {% if script.date_marked %}{{ script.date_marked }}{% endif %} {% if script.corrector %}{{ script.corrector }}{% endif %} -- 2.39.5