feat: Add navigation buttons for collection overview and user answers in messages inbox
This commit is contained in:
@@ -76,6 +76,17 @@
|
|||||||
User Answer In Context
|
User Answer In Context
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% elif row.attempt.user_user_id %}
|
||||||
|
<div class="d-flex flex-wrap gap-2 mt-2">
|
||||||
|
<a class="btn btn-sm btn-outline-secondary"
|
||||||
|
href="{% url 'atlas:collection_take_overview_user' pk=row.collection.id %}">
|
||||||
|
Collection Overview
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-sm btn-outline-primary"
|
||||||
|
href="{% url 'atlas:collection_case_view_take_user_answers' pk=row.collection.id case_number=case_row.casedetail.sort_order %}">
|
||||||
|
View My Answer
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="mt-2"
|
<div class="mt-2"
|
||||||
hx-get="{{ case_row.thread_url }}{% if case_row.cid %}?cid={{ case_row.cid }}{% endif %}"
|
hx-get="{{ case_row.thread_url }}{% if case_row.cid %}?cid={{ case_row.cid }}{% endif %}"
|
||||||
@@ -122,6 +133,17 @@
|
|||||||
User Answer In Context
|
User Answer In Context
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% elif row.attempt.user_user_id %}
|
||||||
|
<div class="d-flex flex-wrap gap-2 mt-2 mb-2">
|
||||||
|
<a class="btn btn-sm btn-outline-secondary"
|
||||||
|
href="{% url 'atlas:collection_take_overview_user' pk=row.collection.id %}">
|
||||||
|
Collection Overview
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-sm btn-outline-primary"
|
||||||
|
href="{% url 'atlas:collection_case_view_take_user_answers' pk=row.collection.id case_number=case_row.casedetail.sort_order %}">
|
||||||
|
View My Answer
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div hx-get="{{ case_row.thread_url }}{% if case_row.cid %}?cid={{ case_row.cid }}{% endif %}"
|
<div hx-get="{{ case_row.thread_url }}{% if case_row.cid %}?cid={{ case_row.cid }}{% endif %}"
|
||||||
hx-trigger="revealed once"
|
hx-trigger="revealed once"
|
||||||
|
|||||||
Reference in New Issue
Block a user