summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-12-24 15:26:19 +0000
committerGitHub <noreply@github.com>2020-12-24 23:26:19 +0800
commitfa2e34928d56598268bbf37e175a291a4b40e92c (patch)
tree667acbe7d74fa9b4ebb53d026940a8bd9dc39945 /templates
parent4c2a1c01a84d6718441863682d44d4a5635af703 (diff)
downloadgitea-fa2e34928d56598268bbf37e175a291a4b40e92c.tar.gz
gitea-fa2e34928d56598268bbf37e175a291a4b40e92c.zip
Ensure that search term and page are not lost on adoption page-turn (#14133)
Fix #14111 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/repo/unadopted.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/admin/repo/unadopted.tmpl b/templates/admin/repo/unadopted.tmpl
index 206ae91f05..bd47dd0262 100644
--- a/templates/admin/repo/unadopted.tmpl
+++ b/templates/admin/repo/unadopted.tmpl
@@ -41,6 +41,8 @@
{{$.CsrfTokenHtml}}
<input type="hidden" name="id" value="{{$dir}}">
<input type="hidden" name="action" value="adopt">
+ <input type="hidden" name="q" value="{{$.Keyword}}">
+ <input type="hidden" name="page" value="{{$.CurrentPage}}">
<div class="actions">
<div class="ui red basic inverted cancel button">
{{svg "octicon-trashcan" 16 "mr-2"}}
@@ -66,6 +68,8 @@
{{$.CsrfTokenHtml}}
<input type="hidden" name="id" value="{{$dir}}">
<input type="hidden" name="action" value="delete">
+ <input type="hidden" name="q" value="{{$.Keyword}}">
+ <input type="hidden" name="page" value="{{$.CurrentPage}}">
<div class="actions">
<div class="ui red basic inverted cancel button">
{{svg "octicon-trashcan" 16 "mr-2"}}