SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b1ea22e5 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add notification icon to submission pool remarks

parent ec0f3331
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
</li>
{% endif %}
<li class="nav-item">
{% include "submissions/pool/_submission_tab_link.html" with submission=submission tab=tab target="remarks" text="Remarks" %}
{% include "submissions/pool/_submission_tab_link.html" with submission=submission tab=tab target="remarks" text="Remarks" notification=submission.remarks.count %}
</li>
<li class="nav-item">
{% include "submissions/pool/_submission_tab_link.html" with submission=submission tab=tab target="graph" text="Graphs" %}
......
......@@ -2,4 +2,8 @@
hx-get="{% url "submissions:pool:_hx_submission_tab" identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr tab=target %}"
hx-target="#tabs-{{ submission.id }}"
hx-indicator="#tabs-{{ submission.id }}-indicator"
>{{ text }}</a>
>{{ text }}
{% if notification %}
<span class="badge bg-danger mb-2 ms-1">{{ notification }}</span>
{% endif %}
</a>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment