.
This commit is contained in:
+4
-1
@@ -153,4 +153,7 @@ class QuestionNote(models.Model):
|
|||||||
if self.user_author is not None:
|
if self.user_author is not None:
|
||||||
return self.user_author.username
|
return self.user_author.username
|
||||||
else:
|
else:
|
||||||
return self.author
|
return self.author
|
||||||
|
|
||||||
|
def get_short_str(self):
|
||||||
|
return f"{self.note_type} - {self.note}"
|
||||||
@@ -10,15 +10,6 @@
|
|||||||
Edit</a>
|
Edit</a>
|
||||||
<h1>Exam: {{ exam.name }}</h1>
|
<h1>Exam: {{ exam.name }}</h1>
|
||||||
|
|
||||||
{% if notes %}
|
|
||||||
<div class="alert alert-warning" role="alert">
|
|
||||||
The following questions have active notes
|
|
||||||
{% for note in notes %}
|
|
||||||
{{note}}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.<br />
|
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.<br />
|
||||||
<div class="parent-help" title="">
|
<div class="parent-help" title="">
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{% if notes %}
|
||||||
|
<div class="alert alert-warning" role="alert">
|
||||||
|
The following questions have active notes
|
||||||
|
<ul>
|
||||||
|
{% for note in notes %}
|
||||||
|
<li>{{note.get_author_str}}: <a href="{{note.get_absolute_url}}">{{note.get_short_str}}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
Reference in New Issue
Block a user