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

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

Added functionalities

  • Property mode set to 100644
File size: 2.4 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">
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>
[60de3eb]23 </ul>
24
25 <ul class="nav navbar-nav navbar-right">
[ae042f4]26 <th:block th:if="${#request.getRemoteUser() != null}">
[60de3eb]27 <li class="nav-item">
[ae042f4]28 <a class="btn btn-success btn-sm ml-3" href="/register">
29 <th:block th:text="${#request.getRemoteUser()}"></th:block>
[60de3eb]30 </a>
31 </li>
[ae042f4]32 </th:block>
33 <th:block th:if="${#request.getRemoteUser() == null}">
[60de3eb]34 <li class="nav-item">
35 <a class="btn btn-success btn-sm ml-3" href="/register">
36 <i class="fa fa-shopping-cart"></i> Регистрирај се
37 </a>
38 </li>
[ae042f4]39 </th:block>
40 <th:block th:if="${#request.getRemoteUser() != null}">
41 <li class="nav-item" sec:authorize="isAuthenticated()">
[60de3eb]42 <a class="btn btn-light btn-sm ml-3" href="/logout">
[ae042f4]43 <i class="fa fa-shopping-cart"></i>
44 Одјави се
[60de3eb]45 </a>
46 </li>
[ae042f4]47 </th:block>
48 <th:block th:if="${#request.getRemoteUser() == null}">
[60de3eb]49 <li class="nav-item">
50 <a class="btn btn-light btn-sm ml-3" href="/login">
51 <i class="fa fa-shopping-cart"></i> Најави се
52 </a>
53 </li>
[ae042f4]54 </th:block>
[60de3eb]55 </ul>
56 </div>
57 </div>
58 </nav>
59</header>
Note: See TracBrowser for help on using the repository browser.