mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Allow users to see the number of checkins (#2561)
Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
</p>
|
||||
{% if line.seat or line.voucher or line.subevent or line.used_membership%}
|
||||
<dl class="dl-inline">
|
||||
{% elif event.settings.show_checkin_number_user and line.checkin_count %}
|
||||
<dl class="dl-inline">
|
||||
{% endif %}
|
||||
{% if line.seat %}
|
||||
<div class="cart-icon-details">
|
||||
@@ -94,8 +96,25 @@
|
||||
</dd>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if event.settings.show_checkin_number_user and line.checkin_count %}
|
||||
<div class="cart-icon-details">
|
||||
<dt class="sr-only">{% trans "Usage:" context "ticket_checkins" %}</dt>
|
||||
<dd class="text-success">
|
||||
<span class="fa fa-check-circle fa-fw text-success" aria-hidden="true"></span>
|
||||
<strong>
|
||||
{% blocktrans trimmed count count=line.checkin_count %}
|
||||
This ticket has been used once.
|
||||
{% plural %}
|
||||
This ticket has been used {{ count }} times.
|
||||
{% endblocktrans %}
|
||||
</strong>
|
||||
</dd>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if line.seat or line.voucher or line.subevent or line.used_membership%}
|
||||
</dl>
|
||||
{% elif event.settings.show_checkin_number_user and line.checkin_count %}
|
||||
</dl>
|
||||
{% endif %}
|
||||
|
||||
{% if line.issued_gift_cards.exists %}
|
||||
|
||||
Reference in New Issue
Block a user