File tree 7 files changed +23
-23
lines changed 7 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 36
36
</div>
37
37
{{if and .PageIsExploreRepositories .OnlyShowRelevant}}
38
38
<div class="ui message explore-relevancy-note">
39
- <span data-tooltip-content="{{.locale.Tr "explore.relevant_repositories_tooltip"}}">{{.locale.Tr "explore.relevant_repositories" ((printf "%s%s" $.Link "?only_show_relevant=0")|Escape) | Safe}}</span>
39
+ <span data-tooltip-content="{{.locale.Tr "explore.relevant_repositories_tooltip"}}">{{.locale.Tr "explore.relevant_repositories" ((print $.Link "?only_show_relevant=0")|Escape) | Safe}}</span>
40
40
</div>
41
41
{{end}}
42
42
<div class="divider"></div>
Original file line number Diff line number Diff line change 4
4
<div class="ui container fluid padded">
5
5
{{$class := ""}}
6
6
{{if .Commit.Signature}}
7
- {{$class = (printf "%s%s" $class " isSigned")}}
7
+ {{$class = (print $class " isSigned")}}
8
8
{{if .Verification.Verified}}
9
9
{{if eq .Verification.TrustStatus "trusted"}}
10
- {{$class = (printf "%s%s" $class " isVerified")}}
10
+ {{$class = (print $class " isVerified")}}
11
11
{{else if eq .Verification.TrustStatus "untrusted"}}
12
- {{$class = (printf "%s%s" $class " isVerifiedUntrusted")}}
12
+ {{$class = (print $class " isVerifiedUntrusted")}}
13
13
{{else}}
14
- {{$class = (printf "%s%s" $class " isVerifiedUnmatched")}}
14
+ {{$class = (print $class " isVerifiedUnmatched")}}
15
15
{{end}}
16
16
{{else if .Verification.Warning}}
17
- {{$class = (printf "%s%s" $class " isWarning")}}
17
+ {{$class = (print $class " isWarning")}}
18
18
{{end}}
19
19
{{end}}
20
20
<div class="ui top attached header clearing segment gt-relative commit-header {{$class}}">
Original file line number Diff line number Diff line change 28
28
<button class="ui button copy-commit-sha gt-df gt-ac" data-clipboard-text="{{.ID}}">{{svg "octicon-copy" 14}}</button>
29
29
{{$class := "ui sha label"}}
30
30
{{if .Signature}}
31
- {{$class = (printf "%s%s" $class " isSigned")}}
31
+ {{$class = (print $class " isSigned")}}
32
32
{{if .Verification.Verified}}
33
33
{{if eq .Verification.TrustStatus "trusted"}}
34
- {{$class = (printf "%s%s" $class " isVerified")}}
34
+ {{$class = (print $class " isVerified")}}
35
35
{{else if eq .Verification.TrustStatus "untrusted"}}
36
- {{$class = (printf "%s%s" $class " isVerifiedUntrusted")}}
36
+ {{$class = (print $class " isVerifiedUntrusted")}}
37
37
{{else}}
38
- {{$class = (printf "%s%s" $class " isVerifiedUnmatched")}}
38
+ {{$class = (print $class " isVerifiedUnmatched")}}
39
39
{{end}}
40
40
{{else if .Verification.Warning}}
41
- {{$class = (printf "%s%s" $class " isWarning")}}
41
+ {{$class = (print $class " isWarning")}}
42
42
{{end}}
43
43
{{end}}
44
44
{{$commitShaLink := ""}}
Original file line number Diff line number Diff line change 17
17
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses "root" $.root}}
18
18
{{$class := "ui sha label"}}
19
19
{{if .Signature}}
20
- {{$class = (printf "%s%s" $class " isSigned")}}
20
+ {{$class = (print $class " isSigned")}}
21
21
{{if .Verification.Verified}}
22
22
{{if eq .Verification.TrustStatus "trusted"}}
23
- {{$class = (printf "%s%s" $class " isVerified")}}
23
+ {{$class = (print $class " isVerified")}}
24
24
{{else if eq .Verification.TrustStatus "untrusted"}}
25
- {{$class = (printf "%s%s" $class " isVerifiedUntrusted")}}
25
+ {{$class = (print $class " isVerifiedUntrusted")}}
26
26
{{else}}
27
- {{$class = (printf "%s%s" $class " isVerifiedUnmatched")}}
27
+ {{$class = (print $class " isVerifiedUnmatched")}}
28
28
{{end}}
29
29
{{else if .Verification.Warning}}
30
- {{$class = (printf "%s%s" $class " isWarning")}}
30
+ {{$class = (print $class " isWarning")}}
31
31
{{end}}
32
32
{{end}}
33
33
<a href="{{$commitLink}}" rel="nofollow" class="gt-ml-3 {{$class}}">
Original file line number Diff line number Diff line change 1
1
{{if not $.DisableMigrations}}
2
- <p class="ui center">{{.locale.Tr "repo.new_repo_helper" ((printf "%s%s" AppSubUrl "/repo/migrate")|Escape) | Safe}}</p>
2
+ <p class="ui center">{{.locale.Tr "repo.new_repo_helper" ((print AppSubUrl "/repo/migrate")|Escape) | Safe}}</p>
3
3
{{end}}
Original file line number Diff line number Diff line change 8
8
<span class="sha" id="{{$commit.ShortRev}}">
9
9
{{$class := "ui sha label"}}
10
10
{{if $commit.Commit.Signature}}
11
- {{$class = (printf "%s%s" $class " isSigned")}}
11
+ {{$class = (print $class " isSigned")}}
12
12
{{if $commit.Verification.Verified}}
13
13
{{if eq $commit.Verification.TrustStatus "trusted"}}
14
- {{$class = (printf "%s%s" $class " isVerified")}}
14
+ {{$class = (print $class " isVerified")}}
15
15
{{else if eq $commit.Verification.TrustStatus "untrusted"}}
16
- {{$class = (printf "%s%s" $class " isVerifiedUntrusted")}}
16
+ {{$class = (print $class " isVerifiedUntrusted")}}
17
17
{{else}}
18
- {{$class = (printf "%s%s" $class " isVerifiedUnmatched")}}
18
+ {{$class = (print $class " isVerifiedUnmatched")}}
19
19
{{end}}
20
20
{{else if $commit.Verification.Warning}}
21
- {{$class = (printf "%s%s" $class " isWarning")}}
21
+ {{$class = (print $class " isWarning")}}
22
22
{{end}}
23
23
{{end}}
24
24
<a href="{{$.RepoLink}}/commit/{{$commit.Rev|PathEscape}}" rel="nofollow" class="{{$class}}">
Original file line number Diff line number Diff line change 70
70
{{if ne .Repository.ID .BaseRepo.ID}}
71
71
{{$cmpBranch = printf "%s/%s:" (.Repository.OwnerName|PathEscape) (.Repository.Name|PathEscape)}}
72
72
{{end}}
73
- {{$cmpBranch = printf "%s%s" $cmpBranch (.BranchName|PathEscapeSegments)}}
73
+ {{$cmpBranch = print $cmpBranch (.BranchName|PathEscapeSegments)}}
74
74
{{$compareLink := printf "%s/compare/%s...%s" .BaseRepo.Link (.BaseRepo.DefaultBranch|PathEscapeSegments) $cmpBranch}}
75
75
<a id="new-pull-request" role="button" class="ui compact basic button" href="{{$compareLink}}"
76
76
data-tooltip-content="{{if .PullRequestCtx.Allowed}}{{.locale.Tr "repo.pulls.compare_changes"}}{{else}}{{.locale.Tr "action.compare_branch"}}{{end}}">
You can’t perform that action at this time.
0 commit comments