Ignore:
Timestamp:
02/17/23 10:50:48 (21 months ago)
Author:
trajchevaM <118018439+trajchevaM@…>
Branches:
main
Children:
b46d1f2
Parents:
245f0ec
Message:

commit on new and updated functionalities

Location:
Prototype Application/Paw5/src/main
Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/resources/templates/aboutUs.html

    r245f0ec r996b8ba  
    2525                        <a class="nav-link active" href="/home/aboutUs">About us</a>
    2626                    </li>
    27                     <li class="nav-item m-auto">
    28                         <a class="nav-link active" href="/login">Login</a>
     27                    <li class="nav-item m-auto" th:if="${session.user == null}">
     28                        <a class="nav-link active" href="/login" >Login</a>
    2929                    </li>
    30                     <li class="nav-item m-auto">
     30                    <li class="nav-item m-auto" th:if="${session.user == null}">
    3131                        <a class="nav-link active" href="/register">Register</a>
     32                    </li>
     33                    <li class="nav-item m-auto" th:if="${session.user != null}">
     34                        <a class="nav-link active">Log out</a>
     35                    </li>
     36                    <li class="nav-item m-auto" th:if="${session.user != null}">
     37                        <a class="nav-link active" href="/approve-adopters">Approve adopters</a>
    3238                    </li>
    3339                </ul>
     
    3844<h1>About Us</h1>
    3945<div>
    40     <h5 class="text-center text-danger">
     46    <h5 class="text-center text-danger" th:if="${session.user != null}">
    4147        You successfully logged in
    4248        <th:block  th:text="${session.user.getId()}"></th:block>
  • Prototype Application/Paw5/src/main/resources/templates/home.html

    r245f0ec r996b8ba  
    2424            <a class="nav-link active" href="/home/aboutUs">About us</a>
    2525          </li>
    26           <li class="nav-item m-auto">
    27             <a class="nav-link active" href="/login">Login</a>
     26          <li class="nav-item m-auto" th:if="${session.user == null}">
     27            <a class="nav-link active" href="/login" >Login</a>
     28          </li>
     29          <li class="nav-item m-auto" th:if="${session.user == null}">
     30            <a class="nav-link active" href="/register">Register</a>
     31          </li>
     32          <li class="nav-item m-auto" th:if="${session.user != null}">
     33            <a class="nav-link active">Log out</a>
    2834          </li>
    2935          <li class="nav-item m-auto">
    30             <a class="nav-link active" href="/register">Register</a>
     36            <a class="nav-link active" href="/approve-adopters">Approve adopters</a>
    3137          </li>
    3238        </ul>
     
    3844<div>
    3945  <h1>Welcome to Paw 5</h1>
    40   <h3>Let's get started
     46  <h3 th:if="${session.user != null}">Let's get started
    4147    <th:block  th:text="${session.user.getName()}"></th:block>
    4248  </h3>
  • Prototype Application/Paw5/src/main/resources/templates/login.html

    r245f0ec r996b8ba  
    2525            <a class="nav-link active" href="/home/aboutUs">About us</a>
    2626          </li>
    27           <li class="nav-item m-auto">
    28             <a class="nav-link active" href="/login">Login</a>
     27          <li class="nav-item m-auto" th:if="${session.user == null}">
     28            <a class="nav-link active" href="/login" >Login</a>
    2929          </li>
    30           <li class="nav-item m-auto">
     30          <li class="nav-item m-auto" th:if="${session.user == null}">
    3131            <a class="nav-link active" href="/register">Register</a>
     32          </li>
     33          <li class="nav-item m-auto" th:if="${session.user != null}">
     34            <a class="nav-link active">Log out</a>
     35          </li>
     36          <li class="nav-item m-auto" th:if="${session.user != null}">
     37            <a class="nav-link active" href="/approve-adopters">Approve adopters</a>
    3238          </li>
    3339        </ul>
  • Prototype Application/Paw5/src/main/resources/templates/register.html

    r245f0ec r996b8ba  
    3232                        <a class="nav-link active" href="/home/aboutUs">About us</a>
    3333                    </li>
    34                     <li class="nav-item m-auto">
    35                         <a class="nav-link active" href="/login">Login</a>
    36                     </li>
    37                     <li class="nav-item m-auto">
     34                    <li class="nav-item m-auto" th:if="${session.user == null}">
     35                        <a class="nav-link active" href="/login" >Login</a>
     36                    </li>
     37                    <li class="nav-item m-auto" th:if="${session.user == null}">
    3838                        <a class="nav-link active" href="/register">Register</a>
     39                    </li>
     40                    <li class="nav-item m-auto" th:if="${session.user != null}">
     41                        <a class="nav-link active">Log out</a>
     42                    </li>
     43                    <li class="nav-item m-auto" th:if="${session.user != null}">
     44                        <a class="nav-link active" href="/approve-adopters">Approve adopters</a>
    3945                    </li>
    4046                </ul>
Note: See TracChangeset for help on using the changeset viewer.