diff options
author | silverwind <me@silverwind.io> | 2022-08-31 17:58:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 23:58:54 +0800 |
commit | 647b2649b1600107c5fec3505db691f78b2c1e2a (patch) | |
tree | b3bcaf968426f6ad1ba4fde3e41f3ca3224ec47e /templates/repo/issue/view_content/pull.tmpl | |
parent | c80ca94ab1de8ea3b13c1087cd7140165a11ceb7 (diff) | |
download | gitea-647b2649b1600107c5fec3505db691f78b2c1e2a.tar.gz gitea-647b2649b1600107c5fec3505db691f78b2c1e2a.zip |
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
Diffstat (limited to 'templates/repo/issue/view_content/pull.tmpl')
-rw-r--r-- | templates/repo/issue/view_content/pull.tmpl | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index fd901f013e..1e07225300 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -1,10 +1,10 @@ -{{if or .PullReviewers .OriginalReviews }} +{{if or .PullReviewers .OriginalReviews}} <div class="comment box"> <div class="content"> <div class="ui segment"> <h4>{{$.locale.Tr "repo.issues.review.reviewers"}}</h4> {{range .PullReviewers}} - {{ $createdStr:= TimeSinceUnix .Review.UpdatedUnix $.locale }} + {{$createdStr:= TimeSinceUnix .Review.UpdatedUnix $.locale}} <div class="ui divider"></div> <div class="review-item"> <div class="review-item-left"> @@ -71,7 +71,7 @@ {{- else if eq .Review.Type 4}}yellow {{else}}grey{{end}}"> - {{if .CanChange }} + {{if .CanChange}} <a href="#" class="ui tooltip icon re-request-review {{if .Checked}}checked{{end}}" data-issue-id="{{$.Issue.ID}}" data-content="{{if .Checked}} {{$.locale.Tr "repo.issues.remove_request_review"}} {{else}} {{$.locale.Tr "repo.issues.re_request_review"}} {{end}}" data-id="{{.ItemID}}" data-update-url="{{$.RepoLink}}/issues/request_review"> {{if .Checked}} {{svg "octicon-trash"}} {{else}} {{svg "octicon-sync"}} {{end}} </a> @@ -82,14 +82,14 @@ </div> {{end}} {{range .OriginalReviews}} - {{ $createdStr:= TimeSinceUnix .UpdatedUnix $.locale }} + {{$createdStr:= TimeSinceUnix .UpdatedUnix $.locale}} <div class="ui divider"></div> <div class="review-item"> <div class="review-item-left"> - <a href="{{$.Repository.OriginalURL}}" class="ui tooltip" data-content="{{$.locale.Tr "repo.migrated_from_fake" ($.Repository.GetOriginalURLHostname|Escape) | Safe }}"> + <a href="{{$.Repository.OriginalURL}}" class="ui tooltip" data-content="{{$.locale.Tr "repo.migrated_from_fake" ($.Repository.GetOriginalURLHostname|Escape) | Safe}}"> <span class="text black "> {{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}} - {{ .OriginalAuthor }} + {{.OriginalAuthor}} </span> </a> </div> @@ -180,7 +180,7 @@ <div class="item toggle-wip df ac sb" data-title="{{.Issue.Title}}" data-wip-prefix="{{(.WorkInProgressPrefix|Escape)}}" data-update-url="{{.Issue.Link}}/title"> <div> <i class="icon icon-octicon">{{svg "octicon-x"}}</i> - {{$.locale.Tr "repo.pulls.cannot_merge_work_in_progress" }} + {{$.locale.Tr "repo.pulls.cannot_merge_work_in_progress"}} </div> <div> {{if or .HasIssuesOrPullsWritePermission .IsIssuePoster}} @@ -224,7 +224,7 @@ {{else if .IsBlockedByChangedProtectedFiles}} <div class="item"> <i class="icon icon-octicon">{{svg "octicon-x" 16}}</i> - {{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe }} + {{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}} <div class="ui ordered list"> {{range .ChangedProtectedFiles}} <div data-value="-" class="item">{{.}}</div> @@ -248,7 +248,7 @@ </div> <div class="item"> <i class="icon unlock"></i> - {{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason) }} + {{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}} </div> {{end}} @@ -278,7 +278,7 @@ {{else if .IsSigned}} <div class="item"> <i class="icon unlock"></i> - {{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason) }} + {{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}} </div> {{end}} {{end}} @@ -290,7 +290,7 @@ {{$.locale.Tr "repo.pulls.outdated_with_base_branch"}} </div> <div class="item-section-right"> - {{if and .UpdateAllowed .UpdateByRebaseAllowed }} + {{if and .UpdateAllowed .UpdateByRebaseAllowed}} <div class="dib"> <div class="ui buttons update-button"> <button class="ui button" data-do="{{.Link}}/update" data-redirect="{{.Link}}"> @@ -460,7 +460,7 @@ {{else if .IsBlockedByChangedProtectedFiles}} <div class="item text red"> <i class="icon icon-octicon">{{svg "octicon-x" 16}}</i> - {{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe }} + {{$.locale.TrN $.ChangedProtectedFilesNum "repo.pulls.blocked_by_changed_protected_files_1" "repo.pulls.blocked_by_changed_protected_files_n" | Safe}} <div class="ui ordered list"> {{range .ChangedProtectedFiles}} <div data-value="-" class="item">{{.}}</div> |