mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2026-10-06 09:21:41 +00:00
Make /user-list return sorted results
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{% import "path/filepath" %}
|
||||
{% import "sort" %}
|
||||
{% import "github.com/bouncepaw/mycorrhiza/cfg" %}
|
||||
{% import "github.com/bouncepaw/mycorrhiza/hyphae" %}
|
||||
{% import "github.com/bouncepaw/mycorrhiza/user" %}
|
||||
@@ -213,6 +214,9 @@ for u := range user.YieldUsers() {
|
||||
editors = append(editors, u.Name)
|
||||
}
|
||||
}
|
||||
sort.Strings(admins)
|
||||
sort.Strings(moderators)
|
||||
sort.Strings(editors)
|
||||
%}
|
||||
<section>
|
||||
<h2>{%s lc.Get("ui.users_admins") %}</h2>
|
||||
|
||||
+489
-466
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user