Changeset 0226942 in Git for src/main/resources/templates/discussionsList.html
- Timestamp:
- 02/08/22 22:07:07 (3 years ago)
- Branches:
- main
- Children:
- 967b414
- Parents:
- ad4243e (diff), c02189f (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:
- Mato-77 <56981531+Mato-77@…> (02/08/22 22:07:07)
- git-committer:
- GitHub <noreply@…> (02/08/22 22:07:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/discussionsList.html
rad4243e r0226942 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.