Update index.jet.html
Cette révision appartient à :
Parent
ca9407079b
révision
8b6f77fc8a
1 fichiers modifiés avec 8 ajouts et 9 suppressions
|
@ -28,12 +28,11 @@
|
|||
<input type="hidden" name="id" value="{{ .ID }}">
|
||||
<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>
|
||||
{{else}}
|
||||
{{end}}
|
||||
<form method="POST" action="/mod/torrent/block" class="delete-form">
|
||||
<input type="hidden" name="id" value="{{ .ID }}">
|
||||
<button type="submit" class="form-input btn-orange" onclick="if (!confirm('{{ T("are_you_sure") }}')) return false;"><i class="icon-trash"></i>{{ if .IsBlocked() }}{{ T("torrent_unblock") }}{{else}}{{ T("torrent_block") }}{{end}}</button>
|
||||
</form>
|
||||
{{end}}
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
|
@ -95,16 +94,16 @@
|
|||
<a href="/user/{{.ID}}/{{.Username }}">{{ .Username }}</a>
|
||||
</td>
|
||||
<td class="tr-size home-td">{{if .ID > 0}}
|
||||
{{ if User.IsModerator() }}
|
||||
<form method="POST" action="/user/{{.ID}}/{{.Username }}/ban">
|
||||
{{ if User.IsModerator() }}
|
||||
<form method="POST" action="/user/{{.ID}}/{{.Username }}/delete" class="delete-form">
|
||||
{{ 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>
|
||||
<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>
|
||||
{{end}}
|
||||
<form method="POST" action="/user/{{.ID}}/{{.Username }}/ban">
|
||||
{{end}}
|
||||
<form method="POST" action="/user/{{.ID}}/{{.Username }}/ban" class="delete-form">
|
||||
{{ yield csrf_field()}}
|
||||
<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>
|
||||
</form>
|
||||
<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("unban") }}{{else}}{{ T("ban") }}{{end}}</button>
|
||||
</form>
|
||||
{{end}}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Référencer dans un nouveau ticket