2016-12-13 02:14:14 +00:00
{{template "header.html" . }}
2016-12-24 13:14:40 +00:00
{{template "panel-menu.html" . }}
2017-05-29 14:52:37 +00:00
2017-08-20 09:39:02 +00:00
< main class = "colstack_right" >
2017-03-18 07:23:02 +00:00
< div class = "colstack_item colstack_head" >
2017-08-27 09:33:45 +00:00
< div class = "rowitem" > < h1 > Users< / h1 > < / div >
2017-03-18 07:23:02 +00:00
< / div >
2017-07-29 10:36:39 +00:00
< div id = "panel_users" class = "colstack_item rowlist bgavatars" >
2017-03-18 07:23:02 +00:00
{{range .ItemList}}
2017-07-29 10:36:39 +00:00
< div class = "rowitem editable_parent" style = "{{if .Avatar}}background-image: url('{{.Avatar}}');{{end}}" >
2017-05-29 14:52:37 +00:00
< a { { if $ . CurrentUser . Perms . EditUser } } href = "/panel/users/edit/{{.ID}}?session={{$.CurrentUser.Session}} " { { end } } class = "editable_block" > {{.Name}}< / a >
< a href = "/user/{{.ID}}" class = "tag-mini" > Profile< / a >
2017-06-28 12:05:26 +00:00
{{if (.Tag) and (.Is_Super_Mod)}}< span style = "float: right;" > < span class = "panel_tag" style = "margin-left 4px;" > {{.Tag}}< / span > < / span > {{end}}
2017-05-29 14:52:37 +00:00
< span class = "panel_floater" >
2017-08-27 09:33:45 +00:00
{{if .Is_Banned}}< a href = "/users/unban/{{.ID}}?session={{$.CurrentUser.Session}}" class = "panel_tag panel_right_button ban_button" > Unban< / a > {{else if not .Is_Super_Mod}}< a href = "/user/{{.ID}}#ban_user" class = "panel_tag panel_right_button ban_button" > Ban< / a > {{end}}
2017-05-29 14:52:37 +00:00
{{if not .Active}}< a href = "/users/activate/{{.ID}}?session={{$.CurrentUser.Session}}" class = "panel_tag panel_right_button" > Activate< / a > {{end}}
2017-03-18 07:23:02 +00:00
< / span >
< / div >
{{end}}
2016-12-13 02:14:14 +00:00
< / div >
2017-08-17 11:13:49 +00:00
{{if gt .LastPage 1}}
< div class = "pageset" >
{{if gt .Page 1}}< div class = "pageitem" > < a href = "?page={{subtract .Page 1}}" > Prev< / a > < / div > {{end}}
{{range .PageList}}
< div class = "pageitem" > < a href = "?page={{.}}" > {{.}}< / a > < / div >
{{end}}
{{if ne .LastPage .Page}}< div class = "pageitem" > < a href = "?page={{add .Page 1}}" > Next< / a > < / div > {{end}}
< / div >
{{end}}
2017-08-20 09:39:02 +00:00
< / main >
2017-05-29 14:52:37 +00:00
{{template "footer.html" . }}