Browse Source

在用户个人中心隐藏热门及活跃Tab

pull/442/head
OpenIhu 3 years ago
parent
commit
4e3e88c8ff
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      templates/explore/repo_list.tmpl

+ 2
- 1
templates/explore/repo_list.tmpl View File

@@ -39,6 +39,7 @@
</style>

<div class="ui secondary pointing tabular top attached borderless menu navbar">
{{if .IsLandingPageExplore}}
<a class="{{if eq .SortType "hot"}}active{{end}} item" href="{{$.Link}}?sort=hot&q={{$.Keyword}}&tab={{$.TabName}}">
<svg class="svg octicon-repo" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-repo" />
@@ -51,7 +52,7 @@
</svg>
活跃{{.i18n.Tr "explore.repos"}}
</a>
{{end}}
<a class="{{if eq .SortType "recentupdate"}}active{{end}} item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}&tab={{$.TabName}}">
<svg class="svg octicon-organization" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-organization" />


Loading…
Cancel
Save