{% extends "base.html" %}
{% block title %}Gemeinden – FragDenRat{% endblock %}
{% block content %}
<h2 class="mb-3">Gemeinden</h2>
<ul class="list-group">
	{% for g in items %}
		<li class="list-group-item d-flex justify-content-between align-items-center">
			<div>
				<a href="{% url 'public_body_detail' slug=g.slug %}" class="text-decoration-none">
					<strong>{{ g.name }}</strong>
				</a>
				{% if g.website %}<div><a href="{{ g.website }}" target="_blank" rel="noopener">{{ g.website }}</a></div>{% endif %}
			</div>
			<span class="badge bg-secondary">{{ g.members.count }} Mitglieder</span>
		</li>
	{% empty %}
		<li class="list-group-item">Keine Einträge.</li>
	{% endfor %}
</ul>
{% endblock %} 