Commit bf415235 authored by Martins Berzins's avatar Martins Berzins
Browse files

Updated navigation bar in all views

parent 1736b4f7
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
<li class="nav-item active"> <li class="nav-item active">
<a class="nav-link" href="#">Add calendar <span class="sr-only">(current)</span></a> <a class="nav-link" href="#">Add calendar <span class="sr-only">(current)</span></a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul> </ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0"> <form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/add-new-calendar">Add calendar</a> <a class="nav-link" href="/add-new-calendar">Add calendar</a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul> </ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0"> <form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/add-new-calendar">Add calendar</a> <a class="nav-link" href="/add-new-calendar">Add calendar</a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul> </ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0"> <form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
......
...@@ -10,6 +10,40 @@ ...@@ -10,6 +10,40 @@
<body> <body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">SimpleCal</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="/calendar">Calendar </a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-event">Add event</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">View calendars <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-calendar">Add calendar</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
</form>
<h6 style="color:white;"> Welcome, <span th:text="${#request.userPrincipal.name}"></span> | <a onclick="document.forms['logoutForm'].submit()">Logout</a></h6>
</div>
</nav>
<div class="container w-50 "> <div class="container w-50 ">
......
...@@ -50,6 +50,42 @@ window.onload = function () { ...@@ -50,6 +50,42 @@ window.onload = function () {
</script> </script>
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">SimpleCal</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="/calendar">Calendar </a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-event">Add event</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">View calendars <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-calendar">Add calendar</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
</form>
<h6 style="color:white;"> Welcome, <span th:text="${#request.userPrincipal.name}"></span> | <a onclick="document.forms['logoutForm'].submit()">Logout</a></h6>
</div>
</nav>
<div id="chartContainer" style="height: 300px; width: 100%;"></div> <div id="chartContainer" style="height: 300px; width: 100%;"></div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -10,10 +10,40 @@ ...@@ -10,10 +10,40 @@
<body> <body>
<style> <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">SimpleCal</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
</style> <span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="/calendar">Calendar </a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-event">Add event</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">View calendars <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-calendar">Add calendar</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
</form>
<h6 style="color:white;"> Welcome, <span th:text="${#request.userPrincipal.name}"></span> | <a onclick="document.forms['logoutForm'].submit()">Logout</a></h6>
</div>
</nav>
<a href="/graph">Compare Calendars </a><br> <a href="/graph">Compare Calendars </a><br>
<a href="/choose-cal">Calendar Analysis </a> <a href="/choose-cal">Calendar Analysis </a>
......
...@@ -56,6 +56,42 @@ window.onload = function () { ...@@ -56,6 +56,42 @@ window.onload = function () {
</script> </script>
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">SimpleCal</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="/calendar">Calendar </a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-event">Add event</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/view-calendars">View calendars</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/add-new-calendar">Add calendar</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
</form>
<h6 style="color:white;"> Welcome, <span th:text="${#request.userPrincipal.name}"></span> | <a onclick="document.forms['logoutForm'].submit()">Logout</a></h6>
</div>
</nav>
<div id="chartContainer" style="height: 300px; width: 100%;"></div> <div id="chartContainer" style="height: 300px; width: 100%;"></div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="/add-new-calendar">Add calendar</a> <a class="nav-link" href="/add-new-calendar">Add calendar</a>
</li> </li>
<li class="nav-item">
<a class="nav-link" href="/stat">Statistics</a>
</li>
</ul> </ul>
<form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0"> <form id="logoutForm" action="#" method="POST" th:action="@{/logout}" class="form-inline my-2 my-lg-0">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment