<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="robots" content="noindex,nofollow">
    <title>{{ pageTitle }}</title>
    <link rel="shortcut icon" href="{{ pathPrefix }}/static/img/favicon.ico?v={{ buildVersion }}">
    <script src="{{ pathPrefix }}/static/vendor/js/jquery.min.js?v={{ buildVersion }}"></script>
    <script src="{{ pathPrefix }}/static/vendor/bootstrap-3.3.1/js/bootstrap.min.js?v={{ buildVersion }}"></script>

    <link type="text/css" rel="stylesheet" href="{{ pathPrefix }}/static/vendor/bootstrap-3.3.1/css/bootstrap.min.css?v={{ buildVersion }}">
    <link type="text/css" rel="stylesheet" href="{{ pathPrefix }}/static/css/prometheus.css?v={{ buildVersion }}">

    <script>
      var PATH_PREFIX = "{{ pathPrefix }}";
      var BUILD_VERSION = "{{ buildVersion }}";
      $(function () {
        $('[data-toggle="tooltip"]').tooltip()
      })
    </script>

    {{template "head" .}}
  </head>

  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="{{ pathPrefix }}/">Prometheus</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-left">
            {{$consoles := consolesPath}}
            {{if $consoles}}
            <li><a href="{{$consoles}}">Consoles</a></li>
            {{ end }}
            <li><a href="{{ pathPrefix }}/alerts">Alerts</a></li>
            <li><a href="{{ pathPrefix }}/graph">Graph</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Status <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="{{ pathPrefix }}/status">Runtime &amp; Build Information</a></li>
                <li><a href="{{ pathPrefix }}/flags">Command-Line Flags</a></li>
                <li><a href="{{ pathPrefix }}/config">Configuration</a></li>
                <li><a href="{{ pathPrefix }}/rules">Rules</a></li>
                <li><a href="{{ pathPrefix }}/targets">Targets</a></li>
                <li><a href="{{ pathPrefix }}/service-discovery">Service Discovery</a></li>
              </ul>
            </li>
            <li>
              <a href="https://prometheus.io/docs/prometheus/latest/getting_started/" target="_blank">Help</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>

    {{template "content" .}}
  </body>
</html>
