Changeset c02189f in Git for src/main/resources/templates/discussionsList.html
- Timestamp:
- 02/08/22 20:13:23 (3 years ago)
- Branches:
- main
- Children:
- 0226942, 3fe36de
- Parents:
- 3c0f9a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/discussionsList.html
r3c0f9a9 rc02189f 4 4 </div> 5 5 <div class="container mb-4"> 6 <div class="row">7 6 <div class="col-12" th:if="${discussions.size() > 0}"> 8 7 <div class="table-responsive"> … … 10 9 <thead> 11 10 <tr> 11 <th scope="col">За</th> 12 12 <th scope="col">Наслов</th> 13 <th scope="col"> Опис</th>13 <th scope="col">Допаѓања</th> 14 14 <th scope="col">Датум</th> 15 15 <th scope="col">Корисник</th> … … 27 27 <tbody> 28 28 <tr th:each="disc : ${discussions}" class="movie"> 29 <td th:text="${disc.getMovie() != null ? disc.getMovie().getTitle() :disc.getPerson().getName() + ' ' + disc.getPerson().getSurname()}"></td>29 <td th:text="${disc.getMovie() != null ? 'Филмот ' + disc.getMovie().getTitle() : 'Актерот ' + disc.getPerson().getName() + ' ' + disc.getPerson().getSurname()}"></td> 30 30 <td> 31 31 <a th:text="${disc.getTitle()}" th:href="@{'/discussions/{id}' (id=${disc.getDiscussionId()})}"></a> 32 32 </td> 33 <td th:text="${disc.getText()}"></td> 33 <td th:each="like : ${likes}" th:if="${like.getDiscussionId().equals(disc.getDiscussionId())}" th:text="${like.getLikes()}" class="likes_count"> 34 </td> 34 35 <td th:text="${disc.getDate()}"></td> 35 36 <td th:text="${disc.getUser().getUsername()}"></td> … … 40 41 <td th:if="${!disc.getUser().equals(user)}"><a class="btn btn-success" th:href="@{'/replies/add/{discussionId}' (discussionId=${disc.getDiscussionId()})}">Реплицирај</a> </td> 41 42 <td th:if="${!disc.getUser().equals(user)}"> 42 <a class= "btn btn-success">👍</a>43 <a class= "btn btn-danger">👎</a>43 <a class='btn btn-success button-like-discussion-alt' th:if="${!likedDiscussions.contains(disc)}" th:discussion-id="${disc.getDiscussionId()}" th:user-id="${user.getUserId()}" >❤</a> 44 <a class='btn btn-danger button-unlike-discussion-alt' th:if="${likedDiscussions.contains(disc)}" th:discussion-id="${disc.getDiscussionId()}" th:user-id="${user.getUserId()}" >💔</a> 44 45 </td> 45 46 </th:block> 46 47 47 48 48 </tr> … … 51 51 </div> 52 52 </div> 53 </div>54 53 </div> 55 54
Note:
See TracChangeset
for help on using the changeset viewer.