[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">
|
---|
| 12 | <li class="nav-item m-auto">
|
---|
| 13 | <a class="nav-link active" href="/products">Продукти</a>
|
---|
| 14 | </li>
|
---|
| 15 | <li class="nav-item m-auto">
|
---|
| 16 | <a class="nav-link active" href="/services">Сервиси</a>
|
---|
| 17 | </li>
|
---|
[7d43957] | 18 | <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
|
---|
| 19 | <li class="nav-item m-auto">
|
---|
| 20 | <a class="nav-link active" href="/currentOrder">Моја нарачка</a>
|
---|
| 21 | </li>
|
---|
| 22 | </th:block>
|
---|
[f484b14] | 23 | <th:block sec:authorize="hasAuthority('ROLE_CLIENT')">
|
---|
| 24 | <li class="nav-item m-auto">
|
---|
| 25 | <a class="nav-link active" href="/addCarSampleForUser">Додај примерок од кола</a>
|
---|
| 26 | </li>
|
---|
| 27 | </th:block>
|
---|
[1bd8d1e] | 28 | <th:block sec:authorize="hasAuthority('ROLE_WAREHOUSEMAN')">
|
---|
| 29 | <li class="nav-item m-auto">
|
---|
| 30 | <a class="nav-link active" href="/myWarehouse">Мој магацин</a>
|
---|
| 31 | </li>
|
---|
| 32 | </th:block>
|
---|
| 33 | <th:block sec:authorize="hasAuthority('ROLE_DELIVERYMAN')">
|
---|
| 34 | <li class="nav-item m-auto">
|
---|
| 35 | <a class="nav-link active" href="/myDeliveries">Мои достави</a>
|
---|
| 36 | </li>
|
---|
| 37 | </th:block>
|
---|
| 38 | <th:block sec:authorize="hasAuthority('ROLE_ADMIN')">
|
---|
| 39 | <li class="nav-item m-auto">
|
---|
| 40 | <a class="nav-link active" href="/viewUsers">Корисници</a>
|
---|
| 41 | </li>
|
---|
| 42 | </th:block>
|
---|
[60de3eb] | 43 | </ul>
|
---|
| 44 |
|
---|
| 45 | <ul class="nav navbar-nav navbar-right">
|
---|
[ae042f4] | 46 | <th:block th:if="${#request.getRemoteUser() != null}">
|
---|
[60de3eb] | 47 | <li class="nav-item">
|
---|
[ae042f4] | 48 | <a class="btn btn-success btn-sm ml-3" href="/register">
|
---|
| 49 | <th:block th:text="${#request.getRemoteUser()}"></th:block>
|
---|
[60de3eb] | 50 | </a>
|
---|
| 51 | </li>
|
---|
[ae042f4] | 52 | </th:block>
|
---|
| 53 | <th:block th:if="${#request.getRemoteUser() == null}">
|
---|
[60de3eb] | 54 | <li class="nav-item">
|
---|
| 55 | <a class="btn btn-success btn-sm ml-3" href="/register">
|
---|
| 56 | <i class="fa fa-shopping-cart"></i> Регистрирај се
|
---|
| 57 | </a>
|
---|
| 58 | </li>
|
---|
[ae042f4] | 59 | </th:block>
|
---|
| 60 | <th:block th:if="${#request.getRemoteUser() != null}">
|
---|
| 61 | <li class="nav-item" sec:authorize="isAuthenticated()">
|
---|
[60de3eb] | 62 | <a class="btn btn-light btn-sm ml-3" href="/logout">
|
---|
[ae042f4] | 63 | <i class="fa fa-shopping-cart"></i>
|
---|
| 64 | Одјави се
|
---|
[60de3eb] | 65 | </a>
|
---|
| 66 | </li>
|
---|
[ae042f4] | 67 | </th:block>
|
---|
| 68 | <th:block th:if="${#request.getRemoteUser() == null}">
|
---|
[60de3eb] | 69 | <li class="nav-item">
|
---|
| 70 | <a class="btn btn-light btn-sm ml-3" href="/login">
|
---|
| 71 | <i class="fa fa-shopping-cart"></i> Најави се
|
---|
| 72 | </a>
|
---|
| 73 | </li>
|
---|
[ae042f4] | 74 | </th:block>
|
---|
[60de3eb] | 75 | </ul>
|
---|
| 76 | </div>
|
---|
| 77 | </div>
|
---|
| 78 | </nav>
|
---|
| 79 | </header>
|
---|