.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user