Changeset ae042f4 for src/main/resources


Ignore:
Timestamp:
01/04/23 02:49:26 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
ab952ab
Parents:
6832924
Message:

Configured spring security, changed spring version

Location:
src/main/resources/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/filteredParts.html

    r6832924 rae042f4  
    11<div>
    22<h1>Резултат од филтерот</h1>
    3 <a th:href="${'/'}">Врати се на сите производи</a>
     3<a th:href="${'/products'}">Врати се на сите производи</a>
    44
    55<table>
  • src/main/resources/templates/fragments/header.html

    r6832924 rae042f4  
    1 <header>
     1<header xmlns:sec="http://www.w3.org/1999/xhtml">
    22  <nav class="navbar navbar-expand-md navbar-dark bg-dark">
    33    <div class="container">
     
    1919
    2020        <ul class="nav navbar-nav navbar-right">
    21 
     21          <th:block th:if="${#request.getRemoteUser() != null}">
    2222          <li class="nav-item">
    23             <a class="nav-link" href="#">
    24 <!--              <th:block th:if="${#request.getRemoteUser() != null}"-->
    25 <!--                        th:text="${#request.getRemoteUser()}"></th:block>-->
     23            <a class="btn btn-success btn-sm ml-3" href="/register">
     24              <th:block th:text="${#request.getRemoteUser()}"></th:block>
    2625            </a>
    2726          </li>
     27        </th:block>
     28          <th:block th:if="${#request.getRemoteUser() == null}">
    2829          <li class="nav-item">
    2930            <a class="btn btn-success btn-sm ml-3" href="/register">
     
    3132            </a>
    3233          </li>
    33           <li class="nav-item">
     34          </th:block>
     35          <th:block th:if="${#request.getRemoteUser() != null}">
     36          <li class="nav-item" sec:authorize="isAuthenticated()">
    3437            <a class="btn btn-light btn-sm ml-3" href="/logout">
    35               <i class="fa fa-shopping-cart"></i> Одјави се
     38              <i class="fa fa-shopping-cart"></i>
     39                        Одјави се
    3640            </a>
    3741          </li>
     42          </th:block>
     43          <th:block th:if="${#request.getRemoteUser() == null}">
    3844          <li class="nav-item">
    3945            <a class="btn btn-light btn-sm ml-3" href="/login">
     
    4147            </a>
    4248          </li>
     49          </th:block>
    4350        </ul>
    4451      </div>
Note: See TracChangeset for help on using the changeset viewer.