Changeset 6f91f99 in Git for src/main/resources
- Timestamp:
- 02/09/22 15:46:58 (3 years ago)
- Branches:
- main
- Children:
- 8f1b7e9
- Parents:
- 967b414
- Location:
- src/main/resources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/js/sharedScript.js
r967b414 r6f91f99 91 91 92 92 $(".user-movies-list").on("click", function (){ 93 children = $(this).children()94 first = true93 let children = $(this).children() 94 let first = true 95 95 for (let item of children){ 96 96 if(first){ -
src/main/resources/templates/discussionsList.html
r967b414 r6f91f99 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()}" 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.