From 89244b74c61495c50ae071c203a2a2a0d078aa00 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 5 Dec 2015 17:49:46 -0500 Subject: [PATCH] remember page number when delete repo --- routers/admin/repos.go | 2 +- 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 62e5b5c6e1..a16a9adec6 100644 --- a/routers/admin/repos.go +++ b/routers/admin/repos.go @@ -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"), }) } diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 932c0d8ac8..f8ccecf66c 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -34,7 +34,7 @@