Explorar o código

Show suspended color in admin edit user

Yoginth %!s(int64=7) %!d(string=hai) anos
pai
achega
1db58452db
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      templates/admin/user/edit.tmpl

+ 1 - 1
templates/admin/user/edit.tmpl

@@ -13,7 +13,7 @@
 						{{.CSRFTokenHTML}}
 						{{.CSRFTokenHTML}}
 						<div class="inline field {{if .Err_UserName}}error{{end}}">
 						<div class="inline field {{if .Err_UserName}}error{{end}}">
 							<label for="user_name">Username</label>
 							<label for="user_name">Username</label>
-							<a class="ui image label" href="{{AppURL}}{{.User.Name}}" target="_blank">
+							<a class="ui image label {{if .User.Suspended}}red{{end}}" href="{{AppURL}}{{.User.Name}}" target="_blank">
 								<img src="{{AppendAvatarSize .User.RelAvatarLink 40}}"> {{.User.Name}}
 								<img src="{{AppendAvatarSize .User.RelAvatarLink 40}}"> {{.User.Name}}
 							</a>
 							</a>
 						</div>
 						</div>