Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

templates: Safe & Escape no longer exist

This commit is contained in:
Earl Warren 2024-02-25 21:36:45 +01:00
parent 8a25361d9a
commit 6ed19cc00d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@
{{if not .MadeUsingAGit}} {{if not .MadeUsingAGit}}
{{$headHref = HTMLFormat `%s <button class="btn interact-fg" data-tooltip-content="%s" data-clipboard-text="%s">%s</button>` $headHref (ctx.Locale.Tr "copy_branch") .HeadTarget (svg "octicon-copy" 14)}} {{$headHref = HTMLFormat `%s <button class="btn interact-fg" data-tooltip-content="%s" data-clipboard-text="%s">%s</button>` $headHref (ctx.Locale.Tr "copy_branch") .HeadTarget (svg "octicon-copy" 14)}}
{{end}} {{end}}
{{$baseHref := .BaseTarget|Escape}} {{$baseHref := .BaseTarget}}
{{if .BaseBranchLink}} {{if .BaseBranchLink}}
{{$baseHref = HTMLFormat `<a href="%s">%s</a>` .BaseBranchLink $baseHref}} {{$baseHref = HTMLFormat `<a href="%s">%s</a>` .BaseBranchLink $baseHref}}
{{end}} {{end}}

View file

@ -691,7 +691,7 @@
<div class="content"> <div class="content">
<div class="ui warning message"> <div class="ui warning message">
<ul> <ul>
<li>{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main_notices_1" | Safe}}</li> <li>{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main_notices_1"}}</li>
<li>{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main_notices_2" .Repository.Name}}</li> <li>{{ctx.Locale.Tr "repo.settings.wiki_rename_branch_main_notices_2" .Repository.Name}}</li>
</ul> </ul>
</div> </div>

View file

@ -9,7 +9,7 @@
{{template "shared/user/name" .}} {{template "shared/user/name" .}}
</div> </div>
<div class="flex-item-body"> <div class="flex-item-body">
<span>{{ctx.Locale.Tr "settings.blocked_since" (DateTime "short" .CreatedUnix) | Safe}}</span> <span>{{ctx.Locale.Tr "settings.blocked_since" (DateTime "short" .CreatedUnix)}}</span>
</div> </div>
</div> </div>
<div class="flex-item-trailing"> <div class="flex-item-trailing">