mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-07 10:55:22 +02: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:
parent
c80ca94ab1
commit
647b2649b1
62 changed files with 251 additions and 251 deletions
|
@ -7,11 +7,11 @@
|
|||
{{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}}
|
||||
{{.locale.Tr "repo.pulls.compare_changes"}}
|
||||
<div class="sub header">{{.locale.Tr "repo.pulls.compare_changes_desc"}}</div>
|
||||
{{ else }}
|
||||
{{else}}
|
||||
{{.locale.Tr "action.compare_commits_general"}}
|
||||
{{ end }}
|
||||
{{end}}
|
||||
</h2>
|
||||
{{ $BaseCompareName := $.BaseName -}}
|
||||
{{$BaseCompareName := $.BaseName -}}
|
||||
{{- $HeadCompareName := $.HeadRepo.OwnerName -}}
|
||||
{{- if and (eq $.BaseName $.HeadRepo.OwnerName) (ne $.Repository.Name $.HeadRepo.Name) -}}
|
||||
{{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
|
||||
|
@ -174,7 +174,7 @@
|
|||
</div>
|
||||
|
||||
{{if .IsNothingToCompare}}
|
||||
{{if and $.IsSigned $.AllowEmptyPr (not .Repository.IsArchived) }}
|
||||
{{if and $.IsSigned $.AllowEmptyPr (not .Repository.IsArchived)}}
|
||||
<div class="ui segment">{{.locale.Tr "repo.pulls.nothing_to_compare_and_allow_empty_pr"}}</div>
|
||||
<div class="ui info message show-form-container" {{if .Flash}}style="display: none"{{end}}>
|
||||
<button class="ui button green show-form">{{.locale.Tr "repo.pulls.new"}}</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue