Skip to content

Commit 1ef0fda

Browse files
JakobDevGiteaBot
andauthored
Add Link to Stars and Forks Page to Repo List (#24931)
The Repolist contains the Number of Stars and Forks. Now these Numbers are a Link to the corresponding pages of the Repo. Co-authored-by: Giteabot <[email protected]>
1 parent 694f70b commit 1ef0fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/explore/repo_list.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
</a>
4646
{{end}}
4747
{{if not $.DisableStars}}
48-
<span class="text grey gt-df gt-ac gt-mr-3">{{svg "octicon-star" 16 "gt-mr-3"}}{{.NumStars}}</span>
48+
<a class="text grey gt-df gt-ac gt-mr-3" href="{{.Link}}/stars">{{svg "octicon-star" 16 "gt-mr-3"}}{{.NumStars}}</a>
4949
{{end}}
50-
<span class="text grey gt-df gt-ac gt-mr-3">{{svg "octicon-git-branch" 16 "gt-mr-3"}}{{.NumForks}}</span>
50+
<a class="text grey gt-df gt-ac gt-mr-3" href="{{.Link}}/forks">{{svg "octicon-git-branch" 16 "gt-mr-3"}}{{.NumForks}}</a>
5151
</div>
5252
</div>
5353
<div class="description">

0 commit comments

Comments
 (0)