diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-02-23 01:02:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 17:02:33 +0000 |
commit | 7a1557d2cc893030ae900c4333eeb12d84b891dc (patch) | |
tree | 4e9e30c2f12419d46dfba40dd17de93bf1248b78 /templates/status | |
parent | f390d5eb4f4db21eeacdf2e7a093f6bd4e87c96f (diff) | |
download | gitea-7a1557d2cc893030ae900c4333eeb12d84b891dc.tar.gz gitea-7a1557d2cc893030ae900c4333eeb12d84b891dc.zip |
Remove unnecessary "Safe" modifier from templates (#29318)
Follow #29165
Diffstat (limited to 'templates/status')
-rw-r--r-- | templates/status/404.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index 74bb8762bd..a8cd3d3290 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -3,7 +3,7 @@ {{if .IsRepo}}{{template "repo/header" .}}{{end}} <div class="ui container center"> <p style="margin-top: 100px"><img src="{{AssetUrlPrefix}}/img/404.png" alt="404"></p> - <p>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404" | Safe}}{{end}}</p> + <p>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</p> {{if .NotFoundGoBackURL}}<a class="ui button green" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a>{{end}} <div class="divider"></div> |