2019-06-10 22:00:57 +00:00
< div class = "colstack_item colstack_head" >
< div class = "rowitem" > < h1 > {{lang "panel_users_head"}}< / h1 > < / div >
< / div >
2021-01-18 22:11:30 +00:00
< div id = "panel_users" class = "colstack_item rowlist bgavatars" >
2019-06-10 22:00:57 +00:00
{{range .ItemList}}
2021-01-18 22:11:30 +00:00
< div class = "rowitem" style = "background-image:url('{{.Avatar}}');" >
2020-04-27 12:41:55 +00:00
< a class = "rowAvatar" { { if $ . CurrentUser . Perms . EditUser } } href = "/panel/users/edit/{{.ID}}" { { end } } >
2020-03-22 02:37:32 +00:00
< img class = "bgsub" src = "{{.Avatar}}" alt = "Avatar" aria-hidden = "true" >
2019-06-10 22:00:57 +00:00
< / a >
2020-04-27 12:41:55 +00:00
< a class = "rowTitle" { { if $ . CurrentUser . Perms . EditUser } } href = "/panel/users/edit/{{.ID}}" { { end } } > {{.Name}}< / a >
2019-06-10 22:00:57 +00:00
< span class = "panel_floater" >
2021-01-18 22:11:30 +00:00
< a href = "{{.Link}}" class = "tag-mini profile_url" > {{lang "panel_users_profile"}}< / a >
2019-06-10 22:00:57 +00:00
{{if (.Tag) and (.IsSuperMod)}}< span class = "panel_tag" > {{.Tag}}< / span > < / span > {{end}}
2021-01-18 22:11:30 +00:00
{{if .IsBanned}}< a href = "/users/unban/{{.ID}}?s={{$.CurrentUser.Session}}" class = "panel_tag panel_right_button ban_button" > {{lang "panel_users_unban"}}< / a > {{else if not .IsSuperMod}}< a href = "/user/{{.ID}}#ban_user" class = "panel_tag panel_right_button ban_button" > {{lang "panel_users_ban"}}< / a > {{end}}
{{if not .Active}}< a href = "/users/activate/{{.ID}}?s={{$.CurrentUser.Session}}" class = "panel_tag panel_right_button" > {{lang "panel_users_activate"}}< / a > {{end}}
2019-06-10 22:00:57 +00:00
< / span >
2016-12-13 02:14:14 +00:00
< / div >
2019-06-10 22:00:57 +00:00
{{end}}
< / div >
2021-01-18 22:11:30 +00:00
{{template "paginator_mod.html" . }}
< div class = "colstack_item colstack_head" >
< div class = "rowitem" > < h1 > {{lang "panel_users_search_head"}}< / h1 > < / div >
< / div >
< div class = "colstack_item the_form" >
< form action = "/panel/users/" method = "get" >
< div class = "formrow" >
< div class = "formitem formlabel" > < a > {{lang "panel_users_search_name"}}< / a > < / div >
< div class = "formitem" > < input name = "s-name" type = "text" { { if . Search . Name } } value = "{{.Search.Name}}" { { end } } placeholder = "{{lang " panel_users_search_name_placeholder " } } " > < / div >
< / div >
{{if .CurrentUser.Perms.EditUserEmail}}< div class = "formrow" >
< div class = "formitem formlabel" > < a > {{lang "panel_users_search_email"}}< / a > < / div >
< div class = "formitem" > < input name = "s-email" type = "email" { { if . Search . Email } } value = "{{.Search.Email}}" { { end } } placeholder = "{{lang " panel_users_search_email_placeholder " } } " > < / div >
< / div > {{end}}
< div class = "formrow form_button_row" >
< div class = "formitem" > < button class = "formbutton" > {{lang "panel_users_search_button"}}< / button > < / div >
< / div >
< / form >
< / div >