瀏覽代碼

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

* Add label to repo icons in explore page

Co-authored-by: silverwind <me@silverwind.io>
tags/v1.18.0-rc0
Baoshuo Ren 1 年之前
父節點
當前提交
c273dea508
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      templates/explore/repo_list.tmpl

+ 2
- 2
templates/explore/repo_list.tmpl 查看文件

@@ -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>

Loading…
取消
儲存