aboutsummaryrefslogtreecommitdiffstats
path: root/templates/explore/repo_list.tmpl
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-08-25 23:55:52 +0200
committerGitHub <noreply@github.com>2022-08-25 17:55:52 -0400
commit6c4688e1b1ddb68de192af7f83b06de27baae85e (patch)
tree554b4e7d97c843590031aab058ba1c66474c405f /templates/explore/repo_list.tmpl
parent27ac65a124f34ec3ed5f34aeb576f918ae1c70b1 (diff)
downloadgitea-6c4688e1b1ddb68de192af7f83b06de27baae85e.tar.gz
gitea-6c4688e1b1ddb68de192af7f83b06de27baae85e.zip
Add whitespace removal inside template curly brackes (#20853)
Diffstat (limited to 'templates/explore/repo_list.tmpl')
-rw-r--r--templates/explore/repo_list.tmpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index cd75f48520..2a5c444dce 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -8,7 +8,7 @@
{{$avatar}}
{{end}}
<a class="name" href="{{.Link}}">
- {{if or $.PageIsExplore $.PageIsProfileStarList }}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}}
+ {{if or $.PageIsExplore $.PageIsProfileStarList}}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}}
</a>
<div class="labels df ac fw">
{{if .IsArchived}}
@@ -39,9 +39,9 @@
</div>
</div>
<div class="metas df ac">
- {{if .PrimaryLanguage }}
+ {{if .PrimaryLanguage}}
<a href="{{$.Link}}?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}">
- <span class="text grey df ac mr-3"><i class="color-icon mr-3" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{ .PrimaryLanguage.Language }}</span>
+ <span class="text grey df ac mr-3"><i class="color-icon mr-3" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{.PrimaryLanguage.Language}}</span>
</a>
{{end}}
{{if not $.DisableStars}}
@@ -51,12 +51,12 @@
</div>
</div>
<div class="description">
- {{ $description := .DescriptionHTML $.Context}}
+ {{$description := .DescriptionHTML $.Context}}
{{if $description}}<p>{{$description}}</p>{{end}}
- {{if .Topics }}
+ {{if .Topics}}
<div class="ui tags">
{{range .Topics}}
- {{if ne . "" }}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui small label topic">{{.}}</div></a>{{end}}
+ {{if ne . ""}}<a href="{{AppSubUrl}}/explore/repos?q={{.}}&topic=1"><div class="ui small label topic">{{.}}</div></a>{{end}}
{{end}}
</div>
{{end}}