diff options
author | a1012112796 <1012112796@qq.com> | 2022-06-19 18:05:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 18:05:15 +0800 |
commit | cc42c6488a818499e363935c214d5c4d0aaff554 (patch) | |
tree | 303ebfabb2c9ffaa5fcbfd333172190324c249d4 /templates/repo/issue/view_content | |
parent | e86f18a05a19611c518f6ccb87cc7a1261392666 (diff) | |
download | gitea-cc42c6488a818499e363935c214d5c4d0aaff554.tar.gz gitea-cc42c6488a818499e363935c214d5c4d0aaff554.zip |
fix delete pull head ref for DeleteIssue (#20032)
* fix delete pull head ref for DeleteIssue
fix #19655
Signed-off-by: a1012112796 <1012112796@qq.com>
* add different help message for delete pull request
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates/repo/issue/view_content')
-rw-r--r-- | templates/repo/issue/view_content/sidebar.tmpl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index 7a966ce878..d58e6e7b9f 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -660,11 +660,19 @@ </button> <div class="ui basic modal" id="delete"> <div class="ui icon header"> - {{.i18n.Tr "repo.issues.delete.title"}} + {{if .Issue.IsPull}} + {{.i18n.Tr "repo.pulls.delete.title"}} + {{else}} + {{.i18n.Tr "repo.issues.delete.title"}} + {{end}} </div> <div class="content center"> <p> - {{.i18n.Tr "repo.issues.delete.text"}} + {{if .Issue.IsPull}} + {{.i18n.Tr "repo.pulls.delete.text"}} + {{else}} + {{.i18n.Tr "repo.issues.delete.text"}} + {{end}} </p> </div> <form action="{{.Issue.Link}}/delete" method="post"> |