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

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

Configured spring security, changed spring version

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