mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
Rename Str2html to SanitizeHTML and clarify its behavior (followup)
This commit is contained in:
parent
2892aaab02
commit
801792e4dc
54 changed files with 86 additions and 86 deletions
|
@ -5,19 +5,19 @@
|
|||
<div class="field">
|
||||
<div class="ui radio non-events checkbox">
|
||||
<input name="events" type="radio" value="push_only" {{if or $isNew .Webhook.PushOnly}}checked{{end}}>
|
||||
<label>{{ctx.Locale.Tr "repo.settings.event_push_only" | Str2html}}</label>
|
||||
<label>{{ctx.Locale.Tr "repo.settings.event_push_only" | SanitizeHTML}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui radio non-events checkbox">
|
||||
<input name="events" type="radio" value="send_everything" {{if .Webhook.SendEverything}}checked{{end}}>
|
||||
<label>{{ctx.Locale.Tr "repo.settings.event_send_everything" | Str2html}}</label>
|
||||
<label>{{ctx.Locale.Tr "repo.settings.event_send_everything" | SanitizeHTML}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui radio events checkbox">
|
||||
<input name="events" type="radio" value="choose_events" {{if .Webhook.ChooseEvents}}checked{{end}}>
|
||||
<label>{{ctx.Locale.Tr "repo.settings.event_choose" | Str2html}}</label>
|
||||
<label>{{ctx.Locale.Tr "repo.settings.event_choose" | SanitizeHTML}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -255,7 +255,7 @@
|
|||
<div class="field">
|
||||
<label for="branch_filter">{{ctx.Locale.Tr "repo.settings.branch_filter"}}</label>
|
||||
<input id="branch_filter" name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}">
|
||||
<span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc" | Str2html}}</span>
|
||||
<span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc" | SanitizeHTML}}</span>
|
||||
</div>
|
||||
|
||||
<!-- Authorization Header -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue