Changeset d14176d for src/main/resources/templates/master_template.html
- Timestamp:
- 07/07/23 12:14:58 (16 months ago)
- Branches:
- main
- Parents:
- 1dd9226
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/master_template.html
r1dd9226 rd14176d 1 1 <!DOCTYPE html> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" 3 xmlns:sec="http://www.w3.org/1999/xhtml"> 3 4 <head> 4 5 <meta charset="UTF-8"> … … 12 13 <body> 13 14 14 <nav class="navbar navbar-inverse"> 15 <div class="container-fluid"> 15 <header xmlns:th="http://www.thymeleaf.org"> 16 <nav class="navbar navbar-expand-md navbar-dark bg-dark"> 17 <div class="container"> 18 <a class="navbar-brand" href="/">FMO</a> 19 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" 20 aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation"> 21 <span class="navbar-toggler-icon"></span> 22 </button> 16 23 17 <div class="collapse navbar-collapse" id="myNavbar"> 18 <ul class="nav navbar-nav"> 19 <li class="active"><a href="home.html">Home</a></li> 20 <li><a href="products.html">Products</a></li> 21 <li><a href="statistics.html">Statistics</a></li> 22 <li><a href="delivery.html">Delivery</a></li> 23 </ul> 24 <ul class="nav navbar-nav navbar-right"> 25 <li><a href="register.html"><span class="glyphicon glyphicon-user"></span>Register</a></li> 26 <li><a href="/login"><span class="glyphicon glyphicon-user"></span>Login</a></li> 27 <li><a href="cart.html"><span class="glyphicon glyphicon-shopping-cart"></span> Cart</a></li> 28 <li><a href="/logout"><span class="glyphicon glyphicon-user"></span>Log out</a></li> 29 </ul> 24 <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault"> 25 <ul class="navbar-nav m-auto"> 26 <li class="nav-item m-auto"> 27 <a class="nav-link active" href="/products">Products</a> 28 </li> 29 <li class="nav-item m-auto" sec:authorize="hasRole('ROLE_ADMIN')"> 30 <a class="nav-link active" th:href="@{/statistics}" th:method="GET">Statistics</a> 31 </li> 32 <li class="nav-item m-auto" sec:authorize="hasRole('ROLE_DELIVER')"> 33 <a class="nav-link active" th:href="@{/delivery}" th:method="GET">Delivery</a> 34 </li> 35 </ul> 36 37 38 <ul class="nav navbar-nav navbar-right"> 39 40 41 <li class="nav-item" sec:authorize="hasRole('ROLE_USER')"> 42 <a class="btn btn-success btn-sm ml-3" th:href="@{/order}" th:method="GET"> 43 <i class="fa fa-shopping-cart"></i> Cart 44 </a> 45 </li> 46 <li class="nav-item" sec:authorize="isAuthenticated()"> 47 <a class="btn btn-light btn-sm ml-3" href="/logout"> 48 <i class="fa fa-shopping-cart"></i> Logout 49 </a> 50 <li class="nav-item"> 51 <a class="btn btn-light btn-sm ml-3" sec:authorize="!isAuthenticated()" href="/register"> 52 <i class="fa fa-shopping-cart"></i> Register 53 </a> 54 </li> 55 <li class="nav-item" sec:authorize="!isAuthenticated()"> 56 <a class="btn btn-light btn-sm ml-3" href="/login"> 57 <i class="fa fa-shopping-cart"></i> Login 58 </a> 59 </li> 60 </ul> 61 </div> 30 62 </div> 31 </ div>32 </ nav>63 </nav> 64 </header> 33 65 34 66 35 67 36 <section th:include="${bodyContent}"> 68 <section th:include="${bodyContent}"></section> 37 69 38 70 39 71 40 72 41 <footer class="container-fluid text-center" >73 <footer class="container-fluid text-center" style="padding-top: 100px"> 42 74 <p>FMO Store</p> 43 75 <p>2023</p>
Note:
See TracChangeset
for help on using the changeset viewer.