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 | <a class="navbar-brand" href="/movies">Форум за филмови</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 | <div class="collapse navbar-collapse justify-content-end" id="navbarsExampleDefault">
|
---|
10 | <ul class="navbar-nav m-auto">
|
---|
11 | <li class="nav-item m-auto">
|
---|
12 | <a class="nav-link active" href="/movies">Филмови</a>
|
---|
13 | </li>
|
---|
14 | <li class="nav-item m-auto">
|
---|
15 | <a class="nav-link active" href="/actors">Актери</a>
|
---|
16 | </li>
|
---|
17 | <li class="nav-item m-auto">
|
---|
18 | <a class="nav-link active" href="/directors">Режисери</a>
|
---|
19 | </li>
|
---|
20 | <li class="nav-item m-auto">
|
---|
21 | <a class="nav-link active" href="/discussions">Дискусии</a>
|
---|
22 | </li>
|
---|
23 | <li class="nav-item m-auto">
|
---|
24 | <a class="nav-link active" href="/genres">Жанрови</a>
|
---|
25 | </li>
|
---|
26 | <li class="nav-item m-auto" sec:authorize="isAuthenticated()">
|
---|
27 | <a class="nav-link active" href="/favoriteList">Омилена листа</a>
|
---|
28 | </li>
|
---|
29 | </ul>
|
---|
30 | <form class="form-inline my-2 my-lg-0">
|
---|
31 | <div class="input-group input-group-sm">
|
---|
32 | <input type="text" class="form-control" aria-label="Small"
|
---|
33 | aria-describedby="inputGroup-sizing-sm"
|
---|
34 | placeholder="Search...">
|
---|
35 | <div class="input-group-append">
|
---|
36 | <button type="button" class="btn btn-secondary btn-number">
|
---|
37 | <i class="fa fa-search"></i>
|
---|
38 | </button>
|
---|
39 | </div>
|
---|
40 | </div>
|
---|
41 | </form>
|
---|
42 | <ul class="nav navbar-nav navbar-right">
|
---|
43 | <li class="nav-item" sec:authorize="isAuthenticated()">
|
---|
44 | <a class="nav-link" href="#">
|
---|
45 | <th:block th:if="${#request.getRemoteUser() != null}"
|
---|
46 | th:text="${#request.getRemoteUser()}"></th:block>
|
---|
47 | </a>
|
---|
48 | </li>
|
---|
49 |
|
---|
50 | <li class="nav-item" sec:authorize="isAuthenticated()">
|
---|
51 | <a class="btn btn-light btn-sm ml-3" href="/logout">
|
---|
52 | <i class="fa fa-shopping-cart"></i> Одјави се
|
---|
53 | </a>
|
---|
54 | </li>
|
---|
55 | <li class="nav-item" sec:authorize="!isAuthenticated()">
|
---|
56 | <a class="btn btn-light btn-sm ml-3" href="/login">
|
---|
57 | <i class="fa fa-shopping-cart"></i> Најави се
|
---|
58 | </a>
|
---|
59 | </li>
|
---|
60 | </ul>
|
---|
61 | </div>
|
---|
62 | </div>
|
---|
63 | </nav>
|
---|
64 | </header> |
---|