Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Hawoldar <vhawoldar@gitlab.com>2021-09-14 14:47:15 +0300
committerVijay Hawoldar <vhawoldar@gitlab.com>2021-09-14 14:56:10 +0300
commit60b0c2ec03a45ae053e7ba0e48493ded714d29d4 (patch)
tree7b284ed44d7001a41f0ee6947ea5eb6dd7d89377 /layouts
parent03ea2b574d98657afb9c1f88e200f967ef2cfee9 (diff)
Hide search in header on homepage
Diffstat (limited to 'layouts')
-rw-r--r--layouts/header.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/header.html b/layouts/header.html
index b923de15..72d1149a 100644
--- a/layouts/header.html
+++ b/layouts/header.html
@@ -10,7 +10,8 @@
<ul class="navbar-nav mr-auto mb-0">
<li class="nav-item active">
<% if @item[:searchbar].nil? %>
- <% unless @item.identifier.to_s.split('/')[1] == 'search' %>
+ <% location = @item.identifier.to_s.split('/')[1] %>
+ <% unless %w(search index.erb).any?(location) %>
<form class="form-inline my-2 my-lg-0" id="search-form" action="/search/" method="get" role="search">
<span class="fa fa-search form-control-feedback position-absolute ml-3 text-muted" aria-hidden="true"></span>
<input class="form-control mr-sm-2 docsearch border-0" name="query" type="search" placeholder="Search the docs..." aria-label="Search">