Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix wrong user edit links in modpanel

Cette révision appartient à :
sfan5 2017-06-13 20:15:50 +02:00
Parent dac4b5baf5
révision 056d579f82
2 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -65,7 +65,7 @@
<tbody>
{{range .Users}}
<tr>
<td class="tr-name home-td"><a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}?edit">{{ .Username }}</a></td>
<td class="tr-name home-td"><a href="{{ genRoute "user_profile_details" "id" (print .ID) "username" .Username }}">{{ .Username }}</a></td>
<td class="tr-size home-td">{{if gt .ID 0}}
<a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}?delete" class="form-input btn-red" onclick="if (!confirm('{{ call $.T "are_you_sure" }}')) return false;"><i class="trash-icon"></i> {{ call $.T "delete" }}</a>
{{end}}</td>

Voir le fichier

@ -12,7 +12,7 @@
<tbody>
{{ range .Models}}
<tr>
<td class="tr-name home-td"><a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}?edit">{{ .Username }}</a></td>
<td class="tr-name home-td"><a href="{{ genRoute "user_profile_details" "id" (print .ID) "username" .Username }}">{{ .Username }}</a></td>
<td class="tr-actions home-td">{{if gt .ID 0}}<a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}?delete" class="form-input btn-red" onclick="if (!confirm('{{ call $.T "are_you_sure" }}')) return false;"><i class="trash-icon"></i> {{ call $.T "delete" }}</a>{{end}}</td>
</tr>
{{end}}