Changes in / [4ab3aae:c3278ac]
- Location:
- Prototype Application/Paw5/src/main
- Files:
-
- 8 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/HomeController.java
r4ab3aae rc3278ac 19 19 20 20 @GetMapping("/aboutUs") 21 public String get AboutUsPage(){21 public String getSuccessPage() { 22 22 return "/aboutUs"; 23 23 } -
Prototype Application/Paw5/src/main/resources/templates/aboutUs.html
r4ab3aae rc3278ac 25 25 <a class="nav-link active" href="/home/aboutUs">About us</a> 26 26 </li> 27 <li class="nav-item m-auto" th:if="${session.user == null}">28 <a class="nav-link active" href="/login" 27 <li class="nav-item m-auto"> 28 <a class="nav-link active" href="/login">Login</a> 29 29 </li> 30 <li class="nav-item m-auto" th:if="${session.user == null}">30 <li class="nav-item m-auto"> 31 31 <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>38 32 </li> 39 33 </ul> … … 44 38 <h1>About Us</h1> 45 39 <div> 46 <h5 class="text-center text-danger" th:if="${session.user != null}">40 <h5 class="text-center text-danger"> 47 41 You successfully logged in 48 42 <th:block th:text="${session.user?.getId()}"></th:block> -
Prototype Application/Paw5/src/main/resources/templates/home.html
r4ab3aae rc3278ac 24 24 <a class="nav-link active" href="/home/aboutUs">About us</a> 25 25 </li> 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> 26 <li class="nav-item m-auto"> 27 <a class="nav-link active" href="/login">Login</a> 34 28 </li> 35 29 <li class="nav-item m-auto"> 36 <a class="nav-link active" href="/ approve-adopters">Approve adopters</a>30 <a class="nav-link active" href="/register">Register</a> 37 31 </li> 38 32 </ul> … … 43 37 <div> 44 38 <h1>Welcome to Paw 5</h1> 45 <h3 th:if="${session.user != null}">Let's get started46 <th:block th:text="${session.user .getName()}"></th:block>39 <h3>Let's get started 40 <th:block th:text="${session.user?.getName()}"></th:block> 47 41 </h3> 48 42 </div> -
Prototype Application/Paw5/src/main/resources/templates/login.html
r4ab3aae rc3278ac 25 25 <a class="nav-link active" href="/home/aboutUs">About us</a> 26 26 </li> 27 <li class="nav-item m-auto" th:if="${session.user == null}">28 <a class="nav-link active" href="/login" 27 <li class="nav-item m-auto"> 28 <a class="nav-link active" href="/login">Login</a> 29 29 </li> 30 <li class="nav-item m-auto" th:if="${session.user == null}">30 <li class="nav-item m-auto"> 31 31 <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>38 32 </li> 39 33 </ul> -
Prototype Application/Paw5/src/main/resources/templates/register.html
r4ab3aae rc3278ac 32 32 <a class="nav-link active" href="/home/aboutUs">About us</a> 33 33 </li> 34 <li class="nav-item m-auto" th:if="${session.user == null}">35 <a class="nav-link active" href="/login" 34 <li class="nav-item m-auto"> 35 <a class="nav-link active" href="/login">Login</a> 36 36 </li> 37 <li class="nav-item m-auto" th:if="${session.user == null}">37 <li class="nav-item m-auto"> 38 38 <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>45 39 </li> 46 40 </ul>
Note:
See TracChangeset
for help on using the changeset viewer.