Browse Source

修改统一搜索,默认热门项目

tags/v1.21.12.1^2
Gitea 4 years ago
parent
commit
7c11778adc
5 changed files with 16 additions and 11 deletions
  1. +3
    -4
      templates/base/head_navbar.tmpl
  2. +2
    -2
      templates/base/head_navbar_fluid.tmpl
  3. +2
    -2
      templates/base/head_navbar_home.tmpl
  4. +2
    -2
      templates/base/head_navbar_pro.tmpl
  5. +7
    -1
      web_src/less/openi.less

+ 3
- 4
templates/base/head_navbar.tmpl View File

@@ -17,7 +17,7 @@


{{if .IsSigned}} {{if .IsSigned}}
<div class=" item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 ">
<div class=" item edge">
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/dashboard"> <a class=" item" href="/dashboard">
<span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span>
@@ -47,7 +47,7 @@
</div> </div>
</div> </div>
{{else if .IsLandingPageHome}} {{else if .IsLandingPageHome}}
<div class=" item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 ">
<div class="item edge">
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/user/login"> <a class=" item" href="/user/login">
<span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span>
@@ -94,8 +94,7 @@
*/}} */}}


{{if .IsSigned}} {{if .IsSigned}}
<div class="right stackable menu">
sss{{$.SortType}}}}
<div class="right stackable menu">
<form class="fourteen wide mobile ten wide tablet ten wide computer column ui form ignore-dirty" style="margin:auto" action="/explore/repos"> <form class="fourteen wide mobile ten wide tablet ten wide computer column ui form ignore-dirty" style="margin:auto" action="/explore/repos">
<div class="ui fluid action input" style="background:#363840 ;border-radius: 5px;width: 200px;height:30px;border: #888888 solid 1px;"> <div class="ui fluid action input" style="background:#363840 ;border-radius: 5px;width: 200px;height:30px;border: #888888 solid 1px;">
<input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search_pro"}}..." <input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "explore.search_pro"}}..."


+ 2
- 2
templates/base/head_navbar_fluid.tmpl View File

@@ -17,7 +17,7 @@


{{if .IsSigned}} {{if .IsSigned}}
<div class="item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 ">
<div class="item edge" >
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/dashboard"> <a class=" item" href="/dashboard">
<span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span>
@@ -46,7 +46,7 @@
</div> </div>
</div> </div>
{{else if .IsLandingPageHome}} {{else if .IsLandingPageHome}}
<div class="item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 ">
<div class="item edge" >
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/user/login"> <a class=" item" href="/user/login">
<span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span>


+ 2
- 2
templates/base/head_navbar_home.tmpl View File

@@ -9,7 +9,7 @@
</div> </div>


{{if .IsSigned}} {{if .IsSigned}}
<div class="item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 ">
<div class="item edge" >
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/dashboard"> <a class=" item" href="/dashboard">
<span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span>
@@ -38,7 +38,7 @@
</div> </div>
</div> </div>
{{else if .IsLandingPageHome}} {{else if .IsLandingPageHome}}
<div class="item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 ">
<div class="item edge" >
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/user/login"> <a class=" item" href="/user/login">
<span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span>


+ 2
- 2
templates/base/head_navbar_pro.tmpl View File

@@ -18,7 +18,7 @@


{{if .IsSigned}} {{if .IsSigned}}
<div class=" item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 " >
<div class=" item edge" >
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/dashboard"> <a class=" item" href="/dashboard">
<span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "index"}} &nbsp <i class="dropdown icon"></i></span>
@@ -48,7 +48,7 @@
</div> </div>
</div> </div>
{{else if .IsLandingPageHome}} {{else if .IsLandingPageHome}}
<div class=" item" style="margin-left:0;margin-right: 0;padding-left:0;padding-right:0 ">
<div class="item edge">
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class=" item" href="/user/login"> <a class=" item" href="/user/login">
<span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span> <span > {{.i18n.Tr "home"}} &nbsp <i class="dropdown icon"></i></span>


+ 7
- 1
web_src/less/openi.less View File

@@ -518,4 +518,10 @@ display: block;
} }
.letf2{ .letf2{
margin-left: -2px; margin-left: -2px;
}
}
.edge{
margin-left:0 !important;
margin-right: 0 !important;
padding-left:0 !important;
padding-right:0 !important;
}

Loading…
Cancel
Save