Skip to content

Commit

Permalink
Add tooltip to repo icons in explore page (#20241)
Browse files Browse the repository at this point in the history
* Add label to repo icons in explore page

Co-authored-by: silverwind <me@silverwind.io>
  • Loading branch information
renbaoshuo and silverwind authored Jul 7, 2022
1 parent 3f513f9 commit c273dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/explore/repo_list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c273dea

Please sign in to comment.