github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_users.html (about)

     1  <div class="colstack_item colstack_head">
     2  	<div class="rowitem"><h1>{{if .Search.Any}}{{lang "panel_users_search_title"}}{{else}}{{lang "panel_users_head"}}{{end}}</h1></div>
     3  </div>
     4  <div id="panel_users"class="colstack_item rowlist bgavatars">
     5  	{{range .ItemList}}
     6  	<div class="rowitem"style="background-image:url('{{.Avatar}}');">
     7  		<a class="rowAvatar"{{if $.CurrentUser.Perms.EditUser}}href="/panel/users/edit/{{.ID}}"{{end}}>
     8  			<img class="bgsub"src="{{.Avatar}}"alt="Avatar"aria-hidden="true">
     9  		</a>
    10  		<a class="rowTitle"{{if $.CurrentUser.Perms.EditUser}}href="/panel/users/edit/{{.ID}}"{{end}}>{{.Name}}</a>
    11  		<span class="panel_floater">
    12  			<a href="{{.Link}}"class="tag-mini profile_url">{{lang "panel_users_profile"}}</a>
    13  			{{if (.Tag) and (.IsSuperMod)}}<span class="panel_tag">{{.Tag}}</span></span>{{end}}
    14  			{{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}}
    15  			{{if not .Active}}<a href="/users/activate/{{.ID}}?s={{$.CurrentUser.Session}}"class="panel_tag panel_right_button">{{lang "panel_users_activate"}}</a>{{end}}
    16  		</span>
    17  	</div>
    18  	{{end}}
    19  </div>
    20  {{template "paginator_mod.html" . }}
    21  
    22  <div class="colstack_item colstack_head">
    23  	<div class="rowitem"><h1>{{lang "panel_users_search_head"}}</h1></div>
    24  </div>
    25  <div class="colstack_item the_form">
    26  	<form action="/panel/users/"method="get">
    27  		<div class="formrow">
    28  			<div class="formitem formlabel"><a>{{lang "panel_users_search_name"}}</a></div>
    29  			<div class="formitem"><input name="s-name"type="text"{{if .Search.Name}}value="{{.Search.Name}}"{{end}}placeholder="{{lang "panel_users_search_name_placeholder"}}"></div>
    30  		</div>
    31  		{{if .CurrentUser.Perms.EditUserEmail}}<div class="formrow">
    32  			<div class="formitem formlabel"><a>{{lang "panel_users_search_email"}}</a></div>
    33  			<div class="formitem"><input name="s-email"type="email"{{if .Search.Email}}value="{{.Search.Email}}"{{end}}placeholder="{{lang "panel_users_search_email_placeholder"}}"></div>
    34  		</div>{{end}}
    35  		{{if .CurrentUser.Perms.EditUserGroup}}<div class="formrow">
    36  			<div class="formitem formlabel"><a>{{lang "panel_users_search_group"}}</a></div>
    37  			<div class="formitem"><select name="s-group">
    38  				<option value="0"{{if eq $.Search.Group 0}}selected{{end}}>{{lang "panel_users_search_group_none"}}</option>
    39  			{{range .Groups}}{{if ne .ID 0}}
    40  				<option value="{{.ID}}"{{if eq $.Search.Group .ID}}selected{{end}}>{{.Name}}</option>
    41  			{{end}}{{end}}</select></div>
    42  		</div>{{end}}
    43  		<div class="formrow form_button_row">
    44  			<div class="formitem"><button class="formbutton">{{lang "panel_users_search_button"}}</button></div>
    45  		</div>
    46  	</form>
    47  </div>