Changeset 8f1b7e9 in Git for src/main/resources/templates


Ignore:
Timestamp:
02/10/22 13:28:00 (3 years ago)
Author:
Test <matonikolov77@…>
Branches:
main
Children:
980eeda
Parents:
6f91f99
Message:

Changed DiscussionRepository and DiscussionServiceImpl for fetching likes

Location:
src/main/resources/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/discussion.html

    r6f91f99 r8f1b7e9  
    1515            </span>
    1616            <span>Број на допаѓања:</span>
    17             <span th:text="${likes}" id="likes_count"></span>
     17            <span th:text="${disc.getLikes()}" id="likes_count"></span>
    1818        </h4>
    1919        <br>
  • src/main/resources/templates/discussionsList.html

    r6f91f99 r8f1b7e9  
    3131                                <a th:text="${disc.getTitle()}" th:href="@{'/discussions/{id}' (id=${disc.getDiscussionId()})}"></a>
    3232                            </td>
    33                             <td th:text="${disc.getLikes()}" class="likes_count">
     33                            <td th:text="${disc.getLikes() != null ? disc.getLikes() : 0}" class="likes_count">
    3434                            </td>
    3535                            <td th:text="${disc.getDate()}"></td>
Note: See TracChangeset for help on using the changeset viewer.