1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-09 02:58:20 +00:00

Make sure fmt catches all templates (#20979)

* Make sure fmt catches all templates

Make's `wildcard` is not recursive so it missed many template files, fix
that by using `find`.

* Update Makefile
This commit is contained in:
silverwind
2022-08-31 17:58:54 +02:00
committed by GitHub
parent c80ca94ab1
commit 647b2649b1
62 changed files with 251 additions and 251 deletions

View File

@@ -10,10 +10,10 @@
</h2>
<div class="ui attached segment">
{{template "base/alert" .}}
{{if .user_email }}
{{if .user_email}}
<div class="inline field">
<label for="user_name">{{.locale.Tr "email"}}</label>
<input id="user_name" type="text" value="{{ .user_email }}" disabled>
<input id="user_name" type="text" value="{{.user_email}}" disabled>
</div>
{{end}}
{{if .IsResetForm}}
@@ -34,7 +34,7 @@
<h4 class="ui dividing header">
{{.locale.Tr "twofa"}}
</h4>
<div class="ui warning visible message">{{.locale.Tr "settings.twofa_is_enrolled" | Str2html }}</div>
<div class="ui warning visible message">{{.locale.Tr "settings.twofa_is_enrolled" | Str2html}}</div>
{{if .scratch_code}}
<div class="required inline field {{if .Err_Token}}error{{end}}">
<label for="token">{{.locale.Tr "auth.scratch_code"}}</label>