From f6a81726250f9b1899f91c408d37ca77c4511538 Mon Sep 17 00:00:00 2001 From: Miguel Barao Date: Mon, 27 Nov 2017 14:51:17 +0000 Subject: [PATCH] - removed updateAnswer, was not being used. - improved review template: ue-logo. --- questions.py | 5 +++-- templates/review.html | 46 ++++++++++++++++++++++++++++++++++++---------- 2 files changed, 39 insertions(+), 12 deletions(-) diff --git a/questions.py b/questions.py index 167792f..9d745cd 100644 --- a/questions.py +++ b/questions.py @@ -41,8 +41,9 @@ class Question(dict): 'files': {}, }) - def updateAnswer(answer=None): - self['answer'] = answer + # FIXME unused. does childs need do override this? + # def updateAnswer(answer=None): + # self['answer'] = answer def correct(self): self['grade'] = 0.0 diff --git a/templates/review.html b/templates/review.html index f2c628c..d8876cb 100644 --- a/templates/review.html +++ b/templates/review.html @@ -28,23 +28,49 @@ +

{{ t['title'] }}

- {{ t.get('duration', chr(8734)) }} -
- -

+

- -
{{t['student']['name']}}
- -
{{t['student']['number']}}
+ +
{{ t.get('duration', chr(8734)) }}
-
+ + +
-- libgit2 0.21.2