diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-03-16 22:04:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 22:04:33 +0800 |
commit | 9e5d0a09eb7370daedb1cf572d25ffa150eacf17 (patch) | |
tree | f39cbf6a572bda0e82caec7ef1697ceb70e37f1e /templates/explore/navbar.tmpl | |
parent | 4163cdf3ea6d6ca43b694de0c15cc93659d6c2b3 (diff) | |
download | gitea-9e5d0a09eb7370daedb1cf572d25ffa150eacf17.tar.gz gitea-9e5d0a09eb7370daedb1cf572d25ffa150eacf17.zip |
Global code search support (#3664)
* add global code search on explore
* fix bug when no anyone public repos
* change the icon
* fix typo and add UnitTypeCode check for login non-admin user
* fix ui description when no match
Diffstat (limited to 'templates/explore/navbar.tmpl')
-rw-r--r-- | templates/explore/navbar.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl index aa4a21d590..3bd52645e2 100644 --- a/templates/explore/navbar.tmpl +++ b/templates/explore/navbar.tmpl @@ -8,4 +8,9 @@ <a class="{{if .PageIsExploreOrganizations}}active{{end}} item" href="{{AppSubUrl}}/explore/organizations"> <span class="octicon octicon-organization"></span> {{.i18n.Tr "explore.organizations"}} </a> + {{if .IsRepoIndexerEnabled}} + <a class="{{if .PageIsExploreCode}}active{{end}} item" href="{{AppSubUrl}}/explore/code"> + <span class="octicon octicon-code"></span> {{.i18n.Tr "explore.code"}} + </a> + {{end}} </div> |