Browse Source

mod tab

pull/373/head
lewis 3 years ago
parent
commit
f800c9e54f
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      templates/explore/repo_list.tmpl
  2. +1
    -1
      templates/explore/repo_orgtop.tmpl

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

@@ -39,20 +39,20 @@
</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="active item" href="{{$.Link}}?sort=hot&q=&tab=">
<a class="{{if eq .SortType "hot"}}active{{end}} item" href="{{$.Link}}?sort=hot&q=&tab=">
<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=" item" href="{{$.Link}}?sort=active&q=&tab=">
<a class="{{if eq .SortType "active"}}active{{end}} item" href="{{$.Link}}?sort=active&q=&tab=">
<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>
活跃{{.i18n.Tr "explore.repos"}} 活跃{{.i18n.Tr "explore.repos"}}
</a> </a>


<a class="{{if eq .SortType "newest"}}active{{end}} item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}&tab={{$.TabName}}">
<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"> <svg class="svg octicon-organization" width="16" height="16" aria-hidden="true">
<use xlink:href="#octicon-organization" /> <use xlink:href="#octicon-organization" />
</svg> {{.i18n.Tr "repo.issues.filter_sort.recentupdate"}} </svg> {{.i18n.Tr "repo.issues.filter_sort.recentupdate"}}


+ 1
- 1
templates/explore/repo_orgtop.tmpl View File

@@ -42,7 +42,7 @@
{{end}}--> {{end}}-->
<div class="swiper-slide"> <div class="swiper-slide">
<div class="ui card"> <div class="ui card">
<a class="image" href="https://git.openi.org.cn/user/avatar/OpenI">
<a class="image" href="https://git.openi.org.cn/OpenI">
<img src="/img/org-openi@2x-80.jpg" alt="OpenI 启智社区" title="OpenI 启智社区"> <img src="/img/org-openi@2x-80.jpg" alt="OpenI 启智社区" title="OpenI 启智社区">
</a> </a>
</div> </div>


Loading…
Cancel
Save