source: Git/target/classes/templates/fragments/header.html@ c02189f

main
Last change on this file since c02189f was c02189f, checked in by Petar Partaloski <ppartaloski@…>, 3 years ago

Added new core functionalities, fixed bugs and improved visual clarity

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[5b447b0]1<header xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml">
2 <nav class="navbar navbar-expand-md navbar-dark bg-dark">
3 <div class="container">
4 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
5 aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
6 <span class="navbar-toggler-icon"></span>
7 </button>
8 <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
9 <ul class="navbar-nav m-auto">
10 <li class="nav-item m-auto">
11 <a class="nav-link active" href="/movies">Филмови</a>
12 </li>
13 <li class="nav-item m-auto">
14 <a class="nav-link active" href="/actors">Актери</a>
15 </li>
16 <li class="nav-item m-auto">
[f25e8dd]17 <a class="nav-link active" href="/directors">Режисери</a>
[5b447b0]18 </li>
19 <li class="nav-item m-auto">
20 <a class="nav-link active" href="/discussions">Дискусии</a>
21 </li>
22 <li class="nav-item m-auto">
23 <a class="nav-link active" href="/genres">Жанрови</a>
24 </li>
25 <li class="nav-item m-auto" sec:authorize="isAuthenticated()">
26 <a class="nav-link active" href="/favoriteList">Омилена листа</a>
27 </li>
28 </ul>
[c02189f]29 <form class="form-inline my-2 my-lg-0 hidden">
[5b447b0]30 <div class="input-group input-group-sm">
31 <input type="text" class="form-control" aria-label="Small"
32 aria-describedby="inputGroup-sizing-sm"
33 placeholder="Search...">
34 <div class="input-group-append">
35 <button type="button" class="btn btn-secondary btn-number">
36 <i class="fa fa-search"></i>
37 </button>
38 </div>
39 </div>
40 </form>
41 <ul class="nav navbar-nav navbar-right">
42 <li class="nav-item" sec:authorize="isAuthenticated()">
43 <a class="nav-link" href="#">
44 <th:block th:if="${#request.getRemoteUser() != null}"
45 th:text="${#request.getRemoteUser()}"></th:block>
46 </a>
47 </li>
48
49 <li class="nav-item" sec:authorize="isAuthenticated()">
50 <a class="btn btn-light btn-sm ml-3" href="/logout">
51 <i class="fa fa-shopping-cart"></i> Одјави се
52 </a>
53 </li>
54 <li class="nav-item" sec:authorize="!isAuthenticated()">
55 <a class="btn btn-light btn-sm ml-3" href="/login">
56 <i class="fa fa-shopping-cart"></i> Најави се
57 </a>
58 </li>
59 </ul>
60 </div>
61 </div>
62 </nav>
63</header>
Note: See TracBrowser for help on using the repository browser.