From 57a825574186f4cbdcdcab83da2901fb70076f67 Mon Sep 17 00:00:00 2001 From: Jonathon Leight Date: Sun, 21 Jun 2026 23:36:27 -0400 Subject: [PATCH] Member list filter --- internal/core/templates/org.html | 32 +++++++++++++++++++++++++------- internal/web/static/app.css | 10 ++++++++++ 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/internal/core/templates/org.html b/internal/core/templates/org.html index cd57c86..11ae04b 100644 --- a/internal/core/templates/org.html +++ b/internal/core/templates/org.html @@ -106,11 +106,23 @@ {{end}} -
-

Members

-
+
+
+

Members

+
+
+ + + + + + +
+
+
+
{{range .Members}} -
+
{{.Name}} @{{.Username}} @@ -134,15 +146,21 @@
- {{if .Org.Description}} + {{if not .IsAdmin}}

About

-

{{.Org.Description}}

+
+ {{if .Org.Description}} +

{{.Org.Description}}

+ {{else}} +

No description yet.

+ {{end}} +
{{end}} {{if .IsAdmin}} -
+

Organization profile (public)

diff --git a/internal/web/static/app.css b/internal/web/static/app.css index 9986d40..50c1556 100644 --- a/internal/web/static/app.css +++ b/internal/web/static/app.css @@ -75,6 +75,16 @@ code.pubkey { .badge.bg-purple-lt { color: #d98fe6 !important; } .badge.bg-secondary-lt { color: var(--tblr-secondary-text-emphasis) !important; } +/* ---------- Members role filter (org page) ---------- + The All/Members/Admins button group filters the members list purely in CSS: + the checked radio in the card header drives which rows show via :has(). Rows + carry `.d-flex` (display:flex !important), so the hide must be `!important` + and specific enough to win — which this selector easily is. */ +.member-card:has(#mf-admin:checked) #member-list [data-role="member"], +.member-card:has(#mf-member:checked) #member-list [data-role="admin"] { + display: none !important; +} + /* ---------- Step indicator (.steps) ---------- Tabler ships two unrelated components under the same `.steps` class: the horizontal step indicator (ul.steps > li.step-item) we use on the add/added