diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2019-02-11 02:27:24 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-02-11 03:27:24 +0200 |
commit | d0cb5aa9f95888a97a6f4ac39769893da8a0cbaf (patch) | |
tree | 539263584cc3b42846cfa523e900c54515e4a5eb | |
parent | c71c28eab8219bbf600d9c9af956c5257a734cd2 (diff) | |
download | gitea-d0cb5aa9f95888a97a6f4ac39769893da8a0cbaf.tar.gz gitea-d0cb5aa9f95888a97a6f4ac39769893da8a0cbaf.zip |
fix #3200 (#6033)
-rw-r--r-- | routers/admin/repos.go | 2 | ||||
-rw-r--r-- | templates/admin/repo/list.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/admin/repos.go b/routers/admin/repos.go index fcb51e650b..d345c8e76a 100644 --- a/routers/admin/repos.go +++ b/routers/admin/repos.go @@ -46,6 +46,6 @@ func DeleteRepo(ctx *context.Context) { ctx.Flash.Success(ctx.Tr("repo.settings.deletion_success")) ctx.JSON(200, map[string]interface{}{ - "redirect": setting.AppSubURL + "/admin/repos?page=" + ctx.Query("page"), + "redirect": setting.AppSubURL + "/admin/repos?page=" + ctx.Query("page") + "&sort=" + ctx.Query("sort"), }) } diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 2054b32178..5d78e8c84e 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -39,7 +39,7 @@ <td>{{.NumIssues}}</td> <td>{{SizeFmt .Size}}</td> <td><span title="{{.CreatedUnix.FormatLong}}">{{.CreatedUnix.FormatShort}}</span></td> - <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}" data-id="{{.ID}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a></td> + <td><a class="delete-button" href="" data-url="{{$.Link}}/delete?page={{$.Page.Current}}&sort={{$.SortType}}" data-id="{{.ID}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a></td> </tr> {{end}} </tbody> |