mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 15:23:33 +01:00
remember page number when delete repo
This commit is contained in:
parent
ca8ce793d1
commit
89244b74c6
2 changed files with 2 additions and 2 deletions
|
@ -56,6 +56,6 @@ func DeleteRepo(ctx *middleware.Context) {
|
|||
|
||||
ctx.Flash.Success(ctx.Tr("repo.settings.deletion_success"))
|
||||
ctx.JSON(200, map[string]interface{}{
|
||||
"redirect": setting.AppSubUrl + "/admin/repos",
|
||||
"redirect": setting.AppSubUrl + "/admin/repos?page=" + ctx.Query("page"),
|
||||
})
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<td>{{.NumStars}}</td>
|
||||
<td>{{.NumIssues}}</td>
|
||||
<td><span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span></td>
|
||||
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete" data-id="{{.ID}}"><i class="trash icon text red"></i></a></td>
|
||||
<td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}" data-id="{{.ID}}"><i class="trash icon text red"></i></a></td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue