calculations over to views.py
Display # of accounts available
{% endcomment %}
{% if object.coordinator == user or user.is_staff %}
- {% if partner_streams %}
+ {% if total_accounts_available_stream %}
<h3>
{% comment %} Translators: This is the section header for accounts availability numbers for the available stream(s). (e.g. https://wikipedialibrary.wmflabs.org/partners/52/). {% endcomment %}
{% trans "Accounts availability" %}
</h3>
- {% for stream_name, total_accounts in total_accounts_available_current.items %}
+ {% for stream_name, total_accounts in total_accounts_available_stream.items %}
<p>{{ stream_name }}: {{ total_accounts }}</p>
{% endfor %}
- {% else %}
+ {% elif total_accounts_available_partner %}
<h3>
{% comment %} Translators: This is the label and the number which shows the number of accounts available for the particular partner. (e.g. https://wikipedialibrary.wmflabs.org/partners/8/). Don't translate {{ accounts_available }}. {% endcomment %}
{% blocktrans trimmed %}
- Accounts available: {{ total_accounts_available_current }}
+ Accounts available: {{ total_accounts_available_partner }}
{% endblocktrans %}
</h3>
{% endif %}
