modified: web/blueprints/group_admin.py
modified: web/templates/group_admin/dashboard.html
This commit is contained in:
@@ -44,8 +44,13 @@ def dashboard():
|
||||
group = db.get_group_by_id(group_id)
|
||||
members = db.get_group_members(group_id)
|
||||
has_db = db.has_db_configured(group_id)
|
||||
stats = {
|
||||
"member_count": len(members),
|
||||
"admin_count": sum(1 for m in members if m.get("role") == "admin"),
|
||||
"db_configured": bool(has_db),
|
||||
}
|
||||
return render_template("group_admin/dashboard.html",
|
||||
group=group, members=members, has_db=has_db)
|
||||
group=group, members=members, has_db=has_db, stats=stats)
|
||||
|
||||
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="col-md-6">
|
||||
<div class="card border-secondary h-100">
|
||||
<div class="card-header">
|
||||
<i class="bi bi-people-fill me-2"></i>Schnellzugriff
|
||||
<i class="bi bi-people-fill me-2"></i>Quick Access
|
||||
</div>
|
||||
<div class="card-body d-flex flex-column gap-2">
|
||||
<a href="{{ url_for('group_admin.members') }}" class="btn btn-outline-warning">
|
||||
|
||||
Reference in New Issue
Block a user