aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2021-11-19 09:54:31 +0000
committerGitHub <noreply@github.com>2021-11-19 17:54:31 +0800
commit381e131fc8d1a3d93002dfbbf853d9d4aab2c547 (patch)
tree941bd7b8682d7fc9d1818a786ec507ac54206ec2 /templates
parent00448ebe9184ccfe9e2fd7f48f9b266ae91d6415 (diff)
downloadgitea-381e131fc8d1a3d93002dfbbf853d9d4aab2c547.tar.gz
gitea-381e131fc8d1a3d93002dfbbf853d9d4aab2c547.zip
Added comment for changing issue ref (#17672)
* Added comment for changing issue ref - Add a comment when someone changes the ref(erence?) of a issue.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 9907246d9f..77925d8e29 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -781,5 +781,22 @@
</div>
{{end}}
</div>
+ {{else if eq .Type 33}}
+ <div class="timeline-item event" id="{{.HashTag}}">
+ <span class="badge">{{svg "octicon-git-branch"}}</span>
+ <a href="{{.Poster.HomeLink}}">
+ {{avatar .Poster}}
+ </a>
+ <span class="text grey">
+ <a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
+ {{if and .OldRef .NewRef}}
+ {{$.i18n.Tr "repo.issues.change_ref_at" (.OldRef|Escape) (.NewRef|Escape) $createdStr | Safe}}
+ {{else if .OldRef}}
+ {{$.i18n.Tr "repo.issues.remove_ref_at" (.OldRef|Escape) $createdStr | Safe}}
+ {{else}}
+ {{$.i18n.Tr "repo.issues.add_ref_at" (.NewRef|Escape) $createdStr | Safe}}
+ {{end}}
+ </span>
+ </div>
{{end}}
{{end}}