<!--
#Copyright 2014 LinkedIn Corp.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you 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.
-->
<div class="topbar navbar navbar-default navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
        <a class="brand navbar-brand" href="{{ report_info.project_url }}">zopkio</a>
        <ul class="nav navbar-nav">
          {%- if active == "summary" %}
            <li class="active">
          {%- else %}
            <li>
          {%- endif %}
              <a href="{{ report_info.home_page }}"><span>Summary</span></a>
            </li>
          {%- if active == "results" %}
            <li class="dropdown active">
          {%- else %}
            <li class="dropdown">
          {%- endif %}
              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span>Results</span><b class="caret"></b></a>
              <ul class="dropdown-menu">
                {%- for config_name in report_info.config_to_test_names_map.keys() %}
                  <li class="dropdown-submenu">
                    <a href="{{ report_info.resource_dir }}{{ config_name }}/{{ config_name ~ report_info.report_file_sfx }}">{{ config_name }}</a>
                    {%- if report_info.config_to_test_names_map[config_name]|length > 0 %}
                      <ul class="dropdown-menu">
                        {%- for test_name in report_info.config_to_test_names_map[config_name] %}
                          <li><a href="{{ report_info.resource_dir }}{{ config_name }}/{{ test_name ~ report_info.report_file_sfx }}">{{ test_name }}</a></li>
                        {%- endfor %}
                      </ul>
                    {%- endif %}
                  </li>
                {%- endfor %}
              </ul>
            </li>
          {%- if active == "diff" %}
            <li class="active">
          {%- else %}
            <li>
          {%- endif %}
            <a href="{{ report_info.diff_page }}"><span>Diff</span></a></li>
            <li><a href="{{ report_info.log_page }}"><span>Logs</span></a></li>
        </ul>
      </div> <!-- container -->
    </div> <!-- navbar-inner -->
  </div> <!-- topbar -->
