mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-10-01 22:01:35 +02:00
Allow to view activity entries on Activity tab
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n perms pretty_money %}
|
||||
{% load i18n perms pretty_money dict_get %}
|
||||
{% url 'activity:activity_detail' activity.pk as activity_detail_url %}
|
||||
|
||||
<div id="activity_info" class="card bg-light shadow mb-3">
|
||||
@@ -53,6 +53,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
<dt class="col-xl-6">{% trans 'opened'|capfirst %}</dt>
|
||||
<dd class="col-xl-6">{{ activity.open|yesno }}</dd>
|
||||
</dl>
|
||||
{% if show_entries|dict_get:activity %}
|
||||
<h2 class="text-center">
|
||||
{{ entries_count|dict_get:activity }}
|
||||
{% if entries_count|dict_get:activity >= 2 %}{% trans "entries" %}{% else %}{% trans "entry" %}{% endif %}
|
||||
</h2>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="card-footer text-center">
|
||||
|
Reference in New Issue
Block a user