summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorBwko <bouwko@gmail.com>2018-04-10 05:43:37 +0200
committerLauris BH <lauris@nix.lv>2018-04-10 06:43:37 +0300
commit38a9cda4bbcddff59c856d42de714b6764887fde (patch)
treeb6c7ea5e0886c6b72365e8d01a436b5c69d8a820 /templates/repo/issue
parent8ee45eb614eaa4814936a2166addc8c1208ea1f5 (diff)
downloadgitea-38a9cda4bbcddff59c856d42de714b6764887fde.tar.gz
gitea-38a9cda4bbcddff59c856d42de714b6764887fde.zip
Remove unnecessary Safe tags (#3778)
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/view_content.tmpl6
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index ea0e32c55e..3fb0108942 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -134,12 +134,12 @@
<div class="ui small basic delete modal">
<div class="ui icon header">
<i class="trash icon"></i>
- {{.i18n.Tr "repo.branch.delete" .HeadTarget | Safe}}
+ {{.i18n.Tr "repo.branch.delete" .HeadTarget }}
</div>
<div class="content">
- <p>{{.i18n.Tr "repo.branch.delete_desc" | Safe}}</p>
+ <p>{{.i18n.Tr "repo.branch.delete_desc"}}</p>
{{.i18n.Tr "repo.branch.delete_notices_1" | Safe}}<br>
- {{.i18n.Tr "repo.branch.delete_notices_2" .HeadTarget | Safe}}<br>
+ {{.i18n.Tr "repo.branch.delete_notices_2" .HeadTarget}}<br>
</div>
{{template "base/delete_modal_actions" .}}
</div>
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 3557c5d3c1..662155144f 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -145,7 +145,7 @@
<img src="{{.Poster.RelAvatarLink}}">
</a>
<span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a>
- {{$.i18n.Tr "repo.issues.delete_branch_at" .CommitSHA $createdStr | Safe}}
+ {{$.i18n.Tr "repo.issues.delete_branch_at" (.CommitSHA|Escape) $createdStr | Safe}}
</span>
</div>
{{else if eq .Type 12}}