Files
member-console/internal/embeds/templates/partials/operator_users.html

40 lines
1.2 KiB
HTML

<!-- People list partial for operator -->
{{ if .Error }}
<div class="alert alert-danger" role="alert">
<strong>Error:</strong> {{ .Error }}
</div>
{{ else if eq (len .Persons) 0 }}
<div class="text-center py-4">
<p class="text-muted mb-0">No people found.</p>
</div>
{{ else }}
<div class="table-responsive">
<table class="table table-hover table-sm">
<thead>
<tr>
<th>Display Name</th>
<th>Email</th>
<th>Status</th>
<th>Joined</th>
</tr>
</thead>
<tbody>
{{ range .Persons }}
<tr>
<td>{{ .DisplayName }}</td>
<td>{{ .Email }}</td>
<td>
{{ if eq .Status "active" }}
<span class="badge bg-success">{{ .Status }}</span>
{{ else }}
<span class="badge bg-secondary">{{ .Status }}</span>
{{ end }}
</td>
<td>{{ .CreatedAt }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
<p class="text-muted small mt-2">Total: {{ len .Persons }} people</p>
{{ end }}