aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-04-30 15:49:12 +0200
committerGitHub <noreply@github.com>2020-04-30 14:49:12 +0100
commit28e5e7fcbca9cd2030c156ec45f6f3cf67b3682e (patch)
treed83299819a3ea9d2d10e26cdd5c50e364e107993 /templates
parent4468b0b2b21a4645d2c82c9819817b37aab5eaff (diff)
downloadgitea-28e5e7fcbca9cd2030c156ec45f6f3cf67b3682e.tar.gz
gitea-28e5e7fcbca9cd2030c156ec45f6f3cf67b3682e.zip
Add a 'this' to issue close/reopened messages (#11204)
* add a 'this' to issue close/reopened messages * add 'this issue/pull request' and create new localization entries Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl12
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 0353e10135..a3b4fb81e0 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -75,7 +75,11 @@
</a>
<span class="text grey">
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
- {{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}}
+ {{if .Issue.IsPull }}
+ {{$.i18n.Tr "repo.pulls.reopened_at" .EventTag $createdStr | Safe}}
+ {{else}}
+ {{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}}
+ {{end}}
</span>
</div>
{{else if eq .Type 2}}
@@ -86,7 +90,11 @@
</a>
<span class="text grey">
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
- {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}}
+ {{if .Issue.IsPull }}
+ {{$.i18n.Tr "repo.pulls.closed_at" .EventTag $createdStr | Safe}}
+ {{else}}
+ {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}}
+ {{end}}
</span>
</div>
{{else if eq .Type 28}}