List of users
{% code var ( admins = make([]string, 0) moderators = make([]string, 0) editors = make([]string, 0) ) for u := range user.YieldUsers() { switch u.Group { case "admin": admins = append(admins, u.Name) case "moderator": moderators = append(moderators, u.Name) case "editor", "trusted": editors = append(editors, u.Name) } } %}Admins
- {% for _, name := range admins %}
- {%s name %} {% endfor %}
Moderators
- {% for _, name := range moderators %}
- {%s name %} {% endfor %}
Editors
- {% for _, name := range editors %}
- {%s name %} {% endfor %}