Add "ban" button, no "delete" button for jantiors
Cette révision appartient à :
Parent
7531a71982
révision
6f1453ef8e
1 fichiers modifiés avec 6 ajouts et 4 suppressions
|
@ -95,10 +95,12 @@
|
|||
<a href="/user/{{.ID}}/{{.Username }}">{{ .Username }}</a>
|
||||
</td>
|
||||
<td class="tr-size home-td">{{if .ID > 0}}
|
||||
<form method="POST" action="/user/{{.ID}}/{{.Username }}/delete" >
|
||||
{{ yield csrf_field()}}
|
||||
<button type="submit" class="form-input btn-red" onclick="if (!confirm('{{ T("are_you_sure") }}')) return false;"><i class="icon-trash"></i> {{ T("delete") }}</button>
|
||||
</form>
|
||||
<form method="POST" action="/user/{{.ID}}/{{.Username }}/ban">
|
||||
{{ yield csrf_field()}}
|
||||
{{ if User.IsModerator() }}
|
||||
<button type="submit" class="form-input btn-red" onclick="if (!confirm('{{ T("are_you_sure") }}')) return false;"><i class="icon-trash"></i> {{ T("delete") }}</button>
|
||||
{{end}}
|
||||
<button type="submit" class="form-input btn-orange" onclick="if (!confirm('{{ T("are_you_sure") }}')) return false;"><i class="icon-trash"></i> {{ if !.IsBanned() }}{{ T("ban") }}{{else}}{{ T("unban") }}{{end}}</button>
|
||||
{{end}}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Référencer dans un nouveau ticket