Skip to content

Commit

Permalink
remember page number when delete repo
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Dec 5, 2015
1 parent ca8ce79 commit 89244b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routers/admin/repos.go
Expand Up @@ -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"),
})
}
2 changes: 1 addition & 1 deletion templates/admin/repo/list.tmpl
Expand Up @@ -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>
Expand Down

0 comments on commit 89244b7

Please sign in to comment.