diff options
Diffstat (limited to 'templates/repo/issue')
-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"> |