Browse Source

stay keyword when changing tab

pull/401/head
lewis 3 years ago
parent
commit
1bfba93fe4
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> </style>


<div class="ui secondary pointing tabular top attached borderless menu navbar"> <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"> <svg class="svg octicon-repo" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-repo" /> <use xlink:href="#octicon-repo" />
</svg> </svg>
热门{{.i18n.Tr "explore.repos"}} 热门{{.i18n.Tr "explore.repos"}}
</a> </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"> <svg class="svg octicon-inbox" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-inbox" /> <use xlink:href="#octicon-inbox" />
</svg> </svg>


Loading…
Cancel
Save