aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-05-25 18:57:49 +0200
committerGitHub <noreply@github.com>2023-05-25 16:57:49 +0000
commit1ef0fda6351934ed69f51dd0a72b0c7ba7178399 (patch)
treed5ef3a0002092ed029a853b33d353b510f703781 /templates
parent694f70b57ee59d7d1631f4bb445c2057d2f25498 (diff)
downloadgitea-1ef0fda6351934ed69f51dd0a72b0c7ba7178399.tar.gz
gitea-1ef0fda6351934ed69f51dd0a72b0c7ba7178399.zip
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 <teabot@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r--templates/explore/repo_list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index b311472b43..a0f74e89da 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -45,9 +45,9 @@
</a>
{{end}}
{{if not $.DisableStars}}
- <span class="text grey gt-df gt-ac gt-mr-3">{{svg "octicon-star" 16 "gt-mr-3"}}{{.NumStars}}</span>
+ <a class="text grey gt-df gt-ac gt-mr-3" href="{{.Link}}/stars">{{svg "octicon-star" 16 "gt-mr-3"}}{{.NumStars}}</a>
{{end}}
- <span class="text grey gt-df gt-ac gt-mr-3">{{svg "octicon-git-branch" 16 "gt-mr-3"}}{{.NumForks}}</span>
+ <a class="text grey gt-df gt-ac gt-mr-3" href="{{.Link}}/forks">{{svg "octicon-git-branch" 16 "gt-mr-3"}}{{.NumForks}}</a>
</div>
</div>
<div class="description">