]> source.dussan.org Git - gitea.git/commitdiff
fix #3200 (#6033)
authorLanre Adelowo <adelowomailbox@gmail.com>
Mon, 11 Feb 2019 01:27:24 +0000 (02:27 +0100)
committerLauris BH <lauris@nix.lv>
Mon, 11 Feb 2019 01:27:24 +0000 (03:27 +0200)
routers/admin/repos.go
templates/admin/repo/list.tmpl

index fcb51e650bbace3c586f12835673a393f244e856..d345c8e76ab03305f07d44c7feed996c725ffaef 100644 (file)
@@ -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"),
        })
 }
index 2054b32178c0eeda8dba7c85279332c4b835ecd8..5d78e8c84e796ceca997348f1b325737cbbdd029 100644 (file)
@@ -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>