Changeset 8f1b7e9 in Git for target/classes
- Timestamp:
- 02/10/22 13:28:00 (3 years ago)
- Branches:
- main
- Children:
- 980eeda
- Parents:
- 6f91f99
- Location:
- target/classes
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
target/classes/templates/discussion.html
r6f91f99 r8f1b7e9 15 15 </span> 16 16 <span>Број на допаѓања:</span> 17 <span th:text="${ likes}" id="likes_count"></span>17 <span th:text="${disc.getLikes()}" id="likes_count"></span> 18 18 </h4> 19 19 <br> -
target/classes/templates/discussionsList.html
r6f91f99 r8f1b7e9 31 31 <a th:text="${disc.getTitle()}" th:href="@{'/discussions/{id}' (id=${disc.getDiscussionId()})}"></a> 32 32 </td> 33 <td th: each="like : ${likes}" th:if="${like.getDiscussionId().equals(disc.getDiscussionId())}" th:text="${like.getLikes()}"class="likes_count">33 <td th:text="${disc.getLikes() != null ? disc.getLikes() : 0}" class="likes_count"> 34 34 </td> 35 35 <td th:text="${disc.getDate()}"></td> … … 41 41 <td th:if="${!disc.getUser().equals(user)}"><a class="btn btn-success" th:href="@{'/replies/add/{discussionId}' (discussionId=${disc.getDiscussionId()})}">Реплицирај</a> </td> 42 42 <td th:if="${!disc.getUser().equals(user)}"> 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>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> 45 45 </td> 46 46 </th:block>
Note:
See TracChangeset
for help on using the changeset viewer.