summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-02-14 17:18:55 +0800
committerGitHub <noreply@github.com>2022-02-14 09:18:55 +0000
commit08fe6f8c7ee4b446ae489843414d237cf3e458b5 (patch)
tree3856aa0af03cdf698e3ac7e069d7d2e50ea968b1 /templates
parent581a563cac5e910510f4f5cc54ccb4478193846f (diff)
downloadgitea-08fe6f8c7ee4b446ae489843414d237cf3e458b5.tar.gz
gitea-08fe6f8c7ee4b446ae489843414d237cf3e458b5.zip
Fix broken cancel button link on patch page (#18718)
* Fix broken cacnel button link on patch page * remove treepath="patch" elsewhere too Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/editor/patch.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/editor/patch.tmpl b/templates/repo/editor/patch.tmpl
index cecda907a4..c108d09159 100644
--- a/templates/repo/editor/patch.tmpl
+++ b/templates/repo/editor/patch.tmpl
@@ -15,7 +15,7 @@
<div class="divider">:</div>
<a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
<span>{{.i18n.Tr "repo.editor.or"}} <a href="{{$.BranchLink}}">{{.i18n.Tr "repo.editor.cancel_lower"}}</a></span>
- <input type="hidden" id="tree_path" name="tree_path" value="patch" required>
+ <input type="hidden" id="tree_path" name="tree_path" value="" required>
<input id="file-name" type="hidden" value="diff.patch">
</div>
</div>