This commit is contained in:
Ross
2021-09-11 15:17:20 +01:00
parent b025a8a4ae
commit 430074260d
4 changed files with 194 additions and 191 deletions
+9 -9
View File
@@ -1,10 +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_object_url}}">{{note.get_short_str}}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
<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_object_url}}">{{note.get_short_str}}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
+16 -16
View File
@@ -1,21 +1,21 @@
Notes:
<ul class="notes">
{% for note in question.notes.all %}
<li {% if note.complete %}class='complete' {% endif %}>
{{ note.created_on }} by
{% if note.user_author %}
{{note.user_author}}
{% else %}
{{ note.author }} [unregistered]
{% endif %}
{{note.note_type}} / {{ note.note }}
{% if not note.complete %}
(<a href="{% url 'feedback_mark_complete' pk=note.pk %}">Mark complete</a>)
{% endif %}
{% if request.user.is_superuser %}
(<a href="{% url 'feedback_note_delete' pk=note.pk %}">Delete</a>)
{% endif %}
</li>
<li {% if note.complete %}class='complete' {% endif %}>
{{ note.created_on }} by
{% if note.user_author %}
{{note.user_author}}
{% else %}
{{ note.author }} [unregistered]
{% endif %}
{{note.note_type}} / {{ note.note }}
{% if not note.complete %}
(<a href="{% url 'feedback_mark_complete' pk=note.pk %}">Mark complete</a>)
{% endif %}
{% if request.user.is_superuser %}
(<a href="{% url 'feedback_note_delete' pk=note.pk %}">Delete</a>)
{% endif %}
</li>
{% endfor %}
{% if not question.notes.all %}No notes to display.{% endif %}
</ul>
</ul>