Ignore:
Timestamp:
03/10/23 22:22:18 (16 months ago)
Author:
GitHub <noreply@…>
Branches:
main
Children:
656be6e
Parents:
c3278ac (diff), 7aa3382 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
SazdovaEkaterina <74919977+SazdovaEkaterina@…> (03/10/23 22:22:18)
git-committer:
GitHub <noreply@…> (03/10/23 22:22:18)
Message:

Merge pull request #10 from SazdovaEkaterina/approve-adopter

Approve Adopters

File:
1 edited

Legend:

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

    rc3278ac r4ab3aae  
    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>
     
    3743<div>
    3844  <h1>Welcome to Paw 5</h1>
    39   <h3>Let's get started
    40     <th:block  th:text="${session.user?.getName()}"></th:block>
     45  <h3 th:if="${session.user != null}">Let's get started
     46    <th:block  th:text="${session.user.getName()}"></th:block>
    4147  </h3>
    4248</div>
Note: See TracChangeset for help on using the changeset viewer.