1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-11 21:10:26 +00:00

Make /user-list return sorted results

This commit is contained in:
Elias Bomberger 2021-10-01 01:14:23 -04:00
parent 039fcd2b3a
commit 4eaec355ca
3 changed files with 932 additions and 905 deletions

View File

@ -1,6 +1,6 @@
// Code generated by go-localize; DO NOT EDIT.
// This file was generated by robots at
// 2021-10-01 12:35:00.027192 +0300 MSK m=+0.003424668
// 2021-10-01 01:05:27.197649651 -0400 EDT m=+0.002749572
package l18n

View File

@ -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>

File diff suppressed because it is too large Load Diff