1<%--
2  ~ Copyright (c) 2017 Google Inc. All Rights Reserved.
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License"); you
5  ~ may not use this file except in compliance with the License. You may
6  ~ obtain a copy of the License at
7  ~
8  ~     http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13  ~ implied. See the License for the specific language governing
14  ~ permissions and limitations under the License.
15  --%>
16<%@ page contentType='text/html;charset=UTF-8' language='java' %>
17<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core'%>
18
19<head>
20  <link rel='stylesheet' href='https://www.gstatic.com/external_hosted/materialize/all_styles-bundle.css'>
21  <link rel='icon' href='https://www.gstatic.com/images/branding/googleg/1x/googleg_standard_color_32dp.png' sizes='32x32'>
22  <link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'>
23  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700'>
24  <link rel='stylesheet' href='/css/navbar.css'>
25  <link rel='stylesheet' href='/css/common.css'>
26  <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
27  <script src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'></script>
28  <script src='https://www.gstatic.com/external_hosted/materialize/materialize.min.js'></script>
29  <script type='text/javascript'>
30    if (${analyticsID}) {
31        // Autogenerated from Google Analytics
32        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
33            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
34            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
35        })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
36        ga('create', ${analyticsID}, 'auto');
37        ga('send', 'pageview');
38    }
39  </script>
40  <title>VTS Dashboard</title>
41</head>
42<body>
43  <nav id='navbar'>
44    <div class='nav-wrapper'>
45      <a href='#' class='brand-logo center'>VTS Dashboard</a>
46      <ul class='nav-list'>
47        <c:forEach items='${navbarLinks}' var='link' varStatus='loop'>
48          <li class='${loop.index == activeIndex ? "active" : ""}'>
49            <a class='nav-list-item' href='${link.url}'>${link.name}</a>
50          </li>
51        </c:forEach>
52      </ul>
53      <ul class='right'><li>
54        <a id='dropdown-button' class='dropdown-button btn red lighten-3' href='#' data-activates='dropdown'>
55          ${email}
56        </a>
57      </li></ul>
58      <ul id='dropdown' class='dropdown-content'>
59        <li><a href='${logoutURL}'>Log out</a></li>
60      </ul>
61      <c:if test='${breadcrumbLinks != null}'>
62        <div id='nav-sublist'>
63          <c:forEach items='${breadcrumbLinks}' var='link'>
64            <a href='${link.url}' class='nav-sublist-item breadcrumb'>${link.name}</a>
65          </c:forEach>
66        </div>
67      </c:if>
68    </div>
69  </nav>
70</body>
71