| <!-- |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. See accompanying LICENSE file. |
| --> |
| <div id="navbar" class="navbar-collapse collapse"> |
| <ul class="nav navbar-nav"> |
| {{ $currentPage := . }} |
| {{ range .Site.Menus.main }} |
| {{ if .HasChildren }} |
| <li class="dropdown {{if $currentPage.HasMenuCurrent "main" . }} active{{end}}"> |
| <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ .Name }} <span class="caret"></span></a> |
| <ul class="dropdown-menu"> |
| {{ range .Children }} |
| <li {{if $currentPage.HasMenuCurrent "main" . }}class="active"{{end}}><a href="{{.URL }}">{{.Name}}</a></li> |
| {{end}} |
| {{if eq .Name "Documentation"}} |
| <li role="separator" class="divider"></li> |
| {{range (where (where $currentPage.Site.Pages "Section" "release") ".Params.linked" true)}} |
| <li><a href="https://hadoop.apache.org/docs/r{{.File.BaseFileName}}/">{{.File.BaseFileName}}</a></li> |
| {{end}} |
| <li role="separator" class="divider"></li> |
| <li><a href="https://wiki.apache.org/hadoop">Wiki</a></li> |
| {{end}} |
| </ul> |
| </li> |
| {{ else }} |
| <li class="{{if $currentPage.HasMenuCurrent "main" . }}active{{end}}"><a href="{{ .URL }}">{{ .Name }}</a></li> |
| {{ end }} |
| {{end}} |
| </ul> |
| <ul class="nav navbar-nav navbar-right"> |
| <li> |
| <a href="https://www.apache.org/">Apache Software Foundation <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a> |
| </li> |
| |
| |
| </ul> |
| </div><!--/.nav-collapse --> |