Skip to content

Commit

Permalink
Merge branch 'root-v1.20-and-main' into release/dcs/v1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
richmahn committed Oct 10, 2023
2 parents c33cbaf + 567866f commit 600a9cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions templates/catalog/catalog_list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
</div>
<div class="gt-font-13 gt-df gt-ac text grey">
<div class="gt-font-13 gt-df gt-ac text grey">
<a class="muted" href="{{$.Link}}?sort={{$.SortType}}&q=lang%3A{{.Language}}">
<span class="gt-df gt-ac gt-mr-3"><i class="color-icon gt-mr-3" style="background-color: {{GetColorFromString .Language}}"></i>{{.Language}}</span>
</a>
<a class="muted" href="{{$.Link}}?sort={{$.SortType}}&q=subject%3A{{.Subject}}">
<span class="gt-df gt-ac gt-mr-3"><i class="color-icon gt-mr-3" style="background-color: {{GetColorFromString .Subject}}"></i>{{.Subject}}</span>
</a>
{{if not $.DisableStars}}
<a class="text grey gt-df gt-ac gt-mr-3" href="{{.Repo.Link}}/stars">{{svg "octicon-star" 16 "gt-mr-3"}}{{.Repo.NumStars}}</a>
{{end}}
Expand Down
5 changes: 4 additions & 1 deletion templates/explore/repo_list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@
</div>
</div>
<div class="gt-font-13 gt-df gt-ac text grey">
{{if .RepoDM}}
{{if .RepoDM.Language}}
<a class="muted" href="{{$.Link}}?sort={{$.SortType}}&q=lang%3A{{.RepoDM.Language}}">
<span class="gt-df gt-ac gt-mr-3"><i class="color-icon gt-mr-3" style="background-color: {{GetColorFromString .RepoDM.Language}}"></i>{{.RepoDM.Language}}</span>
</a>
{{end}}
{{if .RepoDM.Subject}}
<a class="muted" href="{{$.Link}}?sort={{$.SortType}}&q=subject%3A{{.RepoDM.Subject}}">
<span class="gt-df gt-ac gt-mr-3"><i class="color-icon gt-mr-3" style="background-color: {{GetColorFromString .RepoDM.Subject}}"></i>{{.RepoDM.Subject}}</span>
</a>
Expand All @@ -68,6 +70,7 @@
<a class="text grey gt-df gt-ac gt-mr-3" href="{{.Link}}/stars">{{svg "octicon-star" 16 "gt-mr-3"}}{{.NumStars}}</a>
{{end}}
<a class="text grey gt-df gt-ac gt-mr-3" href="{{.Link}}/forks">{{svg "octicon-git-branch" 16 "gt-mr-3"}}{{.NumForks}}</a>
<a class="text grey gt-df gt-ac gt-mr-3" href="{{.Link}}/releases" title="# of releases">{{svg "octicon-tag" 16 "gt-mr-3"}} {{.RepoDM.GetReleaseCount}}</a>
</div>
</div>
<div class="description">
Expand Down

0 comments on commit 600a9cd

Please sign in to comment.