Ignore:
Timestamp:
02/08/22 22:07:07 (3 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge pull request #3 from partaloski/master

Added new core functionalities, fixed bugs and improved visual clarity

File:
1 edited

Legend:

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

    rad4243e r0226942  
    11<div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml">
    22    <div style="width: 85%; text-align: justify; margin: auto; clear: both">
    3         <div>
    4             <h1 th:text="${disc.getTitle()}" style="width: 80%; float: left"></h1>
     3        <div style="background-color: rgba(128,128,128, 0.2); border-radius: 20px; padding: 20px">
     4            <h1 th:text="${disc.getTitle()}" style="width: 80%; display: inline; height: fit-content; clear: both"></h1>
    55        </div>
    6         <hr><br><br>
     6        <hr>
    77        <div>
    88            <h5 th:text="${disc.getText()}" style="width: 90%; margin: auto; background-color: lightblue; border-radius: 4px; padding: 20px"></h5>
    99        </div>
    10         <br><br><br>
     10        <br>
     11        <h4>
     12            <span th:if="${!disc.getUser().equals(user)}" sec:authorize="isAuthenticated()">
     13                <a class='btn btn-success button-like-discussion' th:if="${!likedDiscussions.contains(disc)}" th:discussion-id="${disc.getDiscussionId()}" th:user-id="${user.getUserId()}" >❤</a>
     14                <a class='btn btn-danger button-unlike-discussion' th:if="${likedDiscussions.contains(disc)}" th:discussion-id="${disc.getDiscussionId()}" th:user-id="${user.getUserId()}" >💔</a>
     15            </span>
     16            <span>Број на допаѓања:</span>
     17            <span th:text="${likes}" id="likes_count"></span>
     18        </h4>
     19        <br>
    1120        <h6 style="width: 60%; float:left;">
    1221            <span th:text="${'Поставено од: '+disc.getUser().getUsername()}"></span>
     
    1726        </h6>
    1827        <div style="float: right"  sec:authorize="isAuthenticated()">
    19         <a th:if="${disc.getUser().equals(user)}" class="btn btn-warning" th:href="@{'/discussions/add/{id}' (id=${disc.getDiscussionId()})}">Промени</a>
    20         <a th:if="${disc.getUser().equals(user)}" class="btn btn-danger button-delete-discussion" th:discussion-id="${disc.getDiscussionId()}">Избриши</a>
    21         <a class="btn btn-success" th:href="@{'/replies/add/{discussionId}' (discussionId=${disc.getDiscussionId()})}">Реплицирај</a>
    22         </div>
     28            <a th:if="${disc.getUser().equals(user)}" class="btn btn-warning" th:href="@{'/discussions/add/{id}' (id=${disc.getDiscussionId()})}">Промени</a>
     29            <a th:if="${disc.getUser().equals(user)}" class="btn btn-danger button-delete-discussion" th:discussion-id="${disc.getDiscussionId()}">Избриши</a>
     30            <a class="btn btn-success" th:href="@{'/replies/add/{discussionId}' (discussionId=${disc.getDiscussionId()})}">Реплицирај</a>
     31
     32        </div><br>
    2333    </div>
    2434    <table class="table table-striped" style="width: 70%; margin: auto;">
Note: See TracChangeset for help on using the changeset viewer.