Browse Source

Merge pull request '切换tab页时保持领域搜索' (#401) from repo_list into V20210910

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/401
Reviewed-by: avadesian <xuchx@pcl.ac.cn>
tags/v1.21.12.1
avadesian 4 years ago
parent
commit
ad235df914
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/explore/repo_list.tmpl

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

@@ -39,13 +39,13 @@
</style>

<div class="ui secondary pointing tabular top attached borderless menu navbar">
<a class="{{if eq .SortType "hot"}}active{{end}} item" href="{{$.Link}}?sort=hot&q=&tab=">
<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" />
</svg>
热门{{.i18n.Tr "explore.repos"}}
</a>
<a class="{{if eq .SortType "active"}}active{{end}} item" href="{{$.Link}}?sort=active&q=&tab=">
<a class="{{if eq .SortType "active"}}active{{end}} item" href="{{$.Link}}?sort=active&q={{$.Keyword}}&tab={{$.TabName}}">
<svg class="svg octicon-inbox" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-inbox" />
</svg>


Loading…
Cancel
Save