}
+templ roleTableHeader(field string, label string, currentField string, currentOrder string) {
+ {{
+ isActive := currentField == field
+ baseClasses := "px-6 py-3 text-left text-sm font-semibold text-text cursor-pointer select-none hover:text-blue transition-colors"
+ arrow := ""
+ if isActive {
+ if currentOrder == "ASC" {
+ arrow = " ↑"
+ } else {
+ arrow = " ↓"
+ }
+ }
+ }}
+
| { role.DisplayName } |
@@ -70,7 +137,7 @@ templ roleRow(role *db.Role) {
|