| 1234567891011121314151617181920 |
- {% load i18n %}
- {% if counts %}
- <div class="list-group list-group-flush">
- {% for model, count, url in counts %}
- <a {% if url %}href="{{ url }}" {% endif %}class="list-group-item list-group-item-action px-1 py-2">
- <div class="d-flex w-100 justify-content-between align-items-center">
- {{ model|meta:"verbose_name_plural"|bettertitle }}
- {% if count is None %}
- <span title="{% trans "No permission" %}">
- <i class="mdi mdi-lock-outline"></i>
- </span>
- {% else %}
- <strong>{{ count }}</strong>
- {% endif %}
- </div>
- </a>
- {% endfor %}
- </div>
- {% endif %}
|