source: src/main/resources/templates/fragments/header.html@ cab5859

main
Last change on this file since cab5859 was cab5859, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago

Added all advanced reports, added bootstrap for every template

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[7d43957]1<header xmlns:sec="http://www.w3.org/1999/xhtml" >
[60de3eb]2 <nav class="navbar navbar-expand-md navbar-dark bg-dark">
3 <div class="container">
4 <a class="navbar-brand" href="/">AutoPartz</a>
5 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
6 aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
7 <span class="navbar-toggler-icon"></span>
8 </button>
9
10 <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
11 <ul class="navbar-nav m-auto">
[7d43957]12 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
13 <li class="nav-item m-auto">
14 <a class="nav-link active" href="/currentOrder">Моја нарачка</a>
15 </li>
16 </th:block>
[cab5859]17 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
18 <li class="nav-item m-auto">
19 <a class="nav-link active" href="/orders">Мои нарачки</a>
20 </li>
21 </th:block>
22 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
23 <li class="nav-item m-auto">
24 <a class="nav-link active" href="/repairs">Мои поправки</a>
25 </li>
26 </th:block>
27 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
28 <li class="nav-item m-auto">
29 <a class="nav-link active" href="/reviews">Мои критики</a>
30 </li>
31 </th:block>
[f484b14]32 <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
33 <li class="nav-item m-auto">
34 <a class="nav-link active" href="/addCarSampleForUser">Додај примерок од кола</a>
35 </li>
36 </th:block>
[1bd8d1e]37 <th:block sec:authorize="hasAuthority('ROLE_WAREHOUSEMAN')">
38 <li class="nav-item m-auto">
39 <a class="nav-link active" href="/myWarehouse">Мој магацин</a>
40 </li>
41 </th:block>
42 <th:block sec:authorize="hasAuthority('ROLE_DELIVERYMAN')">
43 <li class="nav-item m-auto">
44 <a class="nav-link active" href="/myDeliveries">Мои достави</a>
45 </li>
46 </th:block>
47 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
48 <li class="nav-item m-auto">
49 <a class="nav-link active" href="/viewUsers">Корисници</a>
50 </li>
51 </th:block>
[60de3eb]52 </ul>
53
54 <ul class="nav navbar-nav navbar-right">
[ae042f4]55 <th:block th:if="${#request.getRemoteUser() != null}">
[60de3eb]56 <li class="nav-item">
[cab5859]57 <a class="btn btn-success btn-sm ml-3" href="/">
[ae042f4]58 <th:block th:text="${#request.getRemoteUser()}"></th:block>
[60de3eb]59 </a>
60 </li>
[ae042f4]61 </th:block>
62 <th:block th:if="${#request.getRemoteUser() == null}">
[60de3eb]63 <li class="nav-item">
64 <a class="btn btn-success btn-sm ml-3" href="/register">
65 <i class="fa fa-shopping-cart"></i> Регистрирај се
66 </a>
67 </li>
[ae042f4]68 </th:block>
69 <th:block th:if="${#request.getRemoteUser() != null}">
70 <li class="nav-item" sec:authorize="isAuthenticated()">
[60de3eb]71 <a class="btn btn-light btn-sm ml-3" href="/logout">
[ae042f4]72 <i class="fa fa-shopping-cart"></i>
73 Одјави се
[60de3eb]74 </a>
75 </li>
[ae042f4]76 </th:block>
77 <th:block th:if="${#request.getRemoteUser() == null}">
[60de3eb]78 <li class="nav-item">
79 <a class="btn btn-light btn-sm ml-3" href="/login">
80 <i class="fa fa-shopping-cart"></i> Најави се
81 </a>
82 </li>
[ae042f4]83 </th:block>
[60de3eb]84 </ul>
85 </div>
86 </div>
87 </nav>
88</header>
Note: See TracBrowser for help on using the repository browser.