{% load govplan %}

{% get_plan_progress object_list as progress %}

<div class="row" style="align-items: center; row-gap: .5rem;">
  <div class="col-sm">
    <span class="no-wrap text-body-secondary{% if not instance.extra_classes or "progress-lg" not in instance.extra_classes %}{% endif %}">{{ progress.count }} Vorhaben</span>
  </div>
  <div class="col-sm-10">
    <div class="progress" {% if "progress-lg" in instance.extra_classes %}style="height: 1.5rem;"{% endif %}>
      {% for section in progress.sections %}
        <div class="progress-bar {% if section.css_class == 'light' %}bg-dark bg-opacity-10{% else %}bg-{{ section.css_class }}{% endif %}" role="progressbar" style="width: {{ section.css_percentage }}%;" aria-valuenow="{{ section.css_percentage }}" aria-valuemin="0" aria-valuemax="100" aria-label="{{ section.percentage }}% {{ section.label }}" title="{{ section.percentage }}% {{ section.label }}" data-bs-toggle="tooltip" data-placement="top">
        </div>
      {% endfor %}
    </div>
  </div>
</div>

