1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Add tooltip to repo icons in explore page (#20241)

* Add label to repo icons in explore page

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Baoshuo Ren 2022-07-08 04:17:41 +08:00 committed by GitHub
parent 3f513f9e54
commit c273dea508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,9 +32,9 @@
{{end}}
{{end}}
{{if .IsFork}}
{{svg "octicon-repo-forked"}}
<span class="tooltip" data-content="{{$.locale.Tr "repo.fork"}}" data-position="bottom center">{{svg "octicon-repo-forked"}}</span>
{{else if .IsMirror}}
{{svg "octicon-mirror"}}
<span class="tooltip" data-content="{{$.locale.Tr "mirror"}}" data-position="bottom center">{{svg "octicon-mirror"}}</span>
{{end}}
</div>
</div>