diff --git a/src/pretix/control/templates/pretixcontrol/items/quota.html b/src/pretix/control/templates/pretixcontrol/items/quota.html
index 251b710df9..42a619ae51 100644
--- a/src/pretix/control/templates/pretixcontrol/items/quota.html
+++ b/src/pretix/control/templates/pretixcontrol/items/quota.html
@@ -39,16 +39,18 @@
{% for row in quota_table_rows %}
-
{{ row.label }}
-
– {{ row.value }}
+
+ {% if row.strong %}{% endif %}
+ {{ row.label }}
+ {% if row.strong %}{% endif %}
+
+
+ {% if row.strong %}{% endif %}
+ {% if not row.strong %}–{% endif %} {{ row.value }}
+ {% if row.strong %}{% endif %}
+
{% endfor %}
-
-
{% trans "Current availability" %}
-
- {% if quota.size == None %}{% trans "Infinite" %}{% else %}{{ avail.1 }}{% endif %}
-
-
{% if quota_overbooked > 0 %}
{% blocktrans trimmed with num=quota_overbooked %}
diff --git a/src/pretix/control/views/item.py b/src/pretix/control/views/item.py
index b5a9d65115..001e50f6a5 100644
--- a/src/pretix/control/views/item.py
+++ b/src/pretix/control/views/item.py
@@ -622,23 +622,33 @@ class QuotaView(ChartContainingView, DetailView):
'value': self.object.count_in_cart(),
'sum': True,
},
- {
- 'label': ugettext('Waiting list (pending)'),
- 'value': self.object.count_waiting_list_pending(),
- 'sum': False,
- },
]
- ctx['quota_table_rows'] = list(data)
sum_values = sum([d['value'] for d in data if d['sum']])
+ s = self.object.size - sum_values if self.object.size is not None else 0
+
+ data.append({
+ 'label': ugettext('Available quota'),
+ 'value': s,
+ 'sum': False,
+ 'strong': True
+ })
+ data.append({
+ 'label': ugettext('Waiting list (pending)'),
+ 'value': self.object.count_waiting_list_pending(),
+ 'sum': False,
+ })
if self.object.size is not None:
data.append({
- 'label': ugettext('Current availability'),
- 'value': avail[1]
+ 'label': ugettext('Currently for sale'),
+ 'value': avail[1],
+ 'sum': False,
+ 'strong': True
})
- ctx['quota_chart_data'] = json.dumps(data)
+ ctx['quota_chart_data'] = json.dumps([r for r in data if r.get('sum')])
+ ctx['quota_table_rows'] = list(data)
ctx['quota_overbooked'] = sum_values - self.object.size if self.object.size is not None else 0
ctx['has_ignore_vouchers'] = Voucher.objects.filter(