Changeset f25e8dd in Git for src/main/resources/templates/moviesList.html
- Timestamp:
- 02/05/22 22:48:19 (3 years ago)
- Branches:
- main
- Children:
- 2efe93e
- Parents:
- 5b447b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/moviesList.html
r5b447b0 rf25e8dd 1 1 <div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml"> 2 <div th:replace="fragments/searchBarGenre">3 2 3 <div style="width: 70%; margin: auto"> 4 <div th:replace="fragments/searchBarName"></div> 5 <div th:replace="fragments/searchBarGenre"></div> 4 6 </div> 5 7 … … 16 18 <tr> 17 19 <th scope="col">Наслов</th> 18 < th scope="col">Опис</th>20 <!--<th scope="col">Опис</th>--> 19 21 <th scope="col">Датум издавање</th> 20 22 <th scope="col">Допаѓања</th> 21 <th scope="col"> Занрови</th>23 <th scope="col">Жанрови</th> 22 24 <th scope="col">Актери</th> 23 25 <th scope="col">Режисер</th> … … 37 39 <tbody> 38 40 <tr th:each="movie : ${movies}" class="elements"> 39 <td th:text="${movie.getTitle()}"></td>40 < td th:text="${movie.getDescription()}"></td>41 <td><a th:text="${movie.getTitle()}" th:href="@{'/movies/{id}' (id=${movie.getMovieId()})}"></a></td> 42 <!--<td th:text="${movie.getDescription()}"></td>--> 41 43 <td th:text="${movie.getAiringDate()}"></td> 42 44 <td th:text="${movie.getLikes() != null ? movie.getLikes().size() : 0}"> … … 47 49 </td> 48 50 <td> 49 <div th:each="a: ${movie.getActors()}" th:text="${a.getPerson().getName()} "></div> 51 <div th:each="ac: ${movie.getActors()}"> 52 <a th:href="@{'/persons/{id}' (id=${ac.getPerson().getPersonId()})}" th:text="${ac.getPerson().getName() + ' ' + ac.getPerson().getSurname()}"></a> 53 </div> 50 54 </td> 51 <td th:text="${movie.getDirector() != null ? movie.getDirector()?.getName() + ' '+ movie.getDirector()?.getSurname() : 'Не е додаен директор'}"></td> 55 <td th:if="${movie.getDirector() != null}"> 56 <a th:href="@{'/persons/{id}' (id=${movie.getDirector().getPersonId()})}" th:text="${movie.getDirector().getName() + ' ' + movie.getDirector().getSurname()}"></a> 57 </td> 58 <td th:if="${movie.getDirector() == null}"> 59 Филмот нема режисер. 60 </td> 52 61 <td> 53 62 <a class="btn btn-primary" th:href="@{'discussions/all/{id}?type=M' (id=${movie.getMovieId()})}" >Прегледај дискусии</a> … … 55 64 <th:block sec:authorize="isAuthenticated()"> 56 65 <td> 57 <a class="btn btn- primarybutton-add-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${!likedMovies.contains(movie)}">Додади во омилена листа</a>58 <a class="btn btn- primarybutton-remove-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${likedMovies.contains(movie)}">Избриши од омилена листа</a>66 <a class="btn btn-success button-add-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${!likedMovies.contains(movie)}">Додади во омилена листа</a> 67 <a class="btn btn-warning button-remove-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${likedMovies.contains(movie)}">Избриши од омилена листа</a> 59 68 60 69 </td> 61 70 <td> 62 <a class="btn btn- primarybutton-add-grade-movie" th:movie-id="${movie.getMovieId()}">Остави оценка</a>71 <a class="btn btn-success button-add-grade-movie" th:movie-id="${movie.getMovieId()}">Остави оценка</a> 63 72 </td> 64 73 <td> 65 <a class="btn btn- primary" th:href="@{'/movies/{id}/edit' (id=${movie.getMovieId()})}">Промени</a>74 <a class="btn btn-warning" th:href="@{'/movies/{id}/edit' (id=${movie.getMovieId()})}">Измени</a> 66 75 </td> 67 76 <td> 68 <a class="btn btn- primarybutton-delete-movie" th:movie-id="${movie.getMovieId()}">Избриши филм</a>77 <a class="btn btn-danger button-delete-movie" th:movie-id="${movie.getMovieId()}">Избриши филм</a> 69 78 </td> 70 79 </th:block>
Note:
See TracChangeset
for help on using the changeset viewer.