Changeset a9ffccd for src/main/resources/templates/fragments
- Timestamp:
- 02/09/23 14:32:28 (23 months ago)
- Branches:
- master
- Children:
- 4bfcc04, 8204d83
- Parents:
- 00fa72f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/fragments/header.html
r00fa72f ra9ffccd 59 59 <body> 60 60 <div style="width: 100%"> 61 <nav class="menu" >61 <nav class="menu" xmlns:sec="http://www.w3.org/1999/xhtml"> 62 62 <ul class="menu-left"> 63 63 <li class="begin"><a href="/home">MovieZone</a></li> … … 74 74 </ul> 75 75 <ul class="menu-right"> 76 <li class="reg"><a href="/login">Најава</a></li> 77 <li class="reg"><a href="/register">Регистрација</a></li> 76 <th:block th:if="${#request.getRemoteUser() != null}"> 77 <li class="reg"> 78 <a href="/"> 79 <th:block th:text="${#request.getRemoteUser()}"></th:block> 80 </a> 81 </li> 82 </th:block> 83 <th:block th:if="${#request.getRemoteUser() == null}"> 84 <li class="reg"><a href="/register">Регистрација</a></li> 85 </th:block> 86 <th:block th:if="${#request.getRemoteUser() != null}"> 87 <li class="reg" sec:authorize="isAuthenticated()"> 88 <a href="/logout"> 89 Одјави се 90 </a> 91 </li> 92 </th:block> 93 <th:block th:if="${#request.getRemoteUser() == null}"> 94 <li class="reg"><a href="/login">Најава</a></li> 95 </th:block> 78 96 </ul> 79 97 </nav></div>
Note:
See TracChangeset
for help on using the changeset viewer.