Fix the signup domain list with non infinite mailbox max count

master
kaiyou 7 years ago
parent 2662abedef
commit def0a8b89d

@ -18,7 +18,7 @@
{% for domain_name, domain in available_domains.items() %} {% for domain_name, domain in available_domains.items() %}
<tr> <tr>
<td><a href="{{ url_for('.user_signup', domain_name=domain_name) }}">{{ domain_name }}</a></td> <td><a href="{{ url_for('.user_signup', domain_name=domain_name) }}">{{ domain_name }}</a></td>
<td>{{ domain.max_users - domain.users if domain.max_users else '∞' }}</td> <td>{{ domain.max_users - (domain.users | count) if domain.max_users else '∞' }}</td>
<td>{{ domain.max_quota_bytes or config['DEFAULT_QUOTA'] | filesizeformat }}</td> <td>{{ domain.max_quota_bytes or config['DEFAULT_QUOTA'] | filesizeformat }}</td>
</tr> </tr>
{% endfor %} {% endfor %}

Loading…
Cancel
Save