Ignore:
Timestamp:
02/09/22 03:14:08 (3 years ago)
Author:
Petar Partaloski <ppartaloski@…>
Branches:
main
Children:
967b414
Parents:
c02189f
Message:

Added User profiles, improved clarity, improved UI

File:
1 edited

Legend:

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

    rc02189f r3fe36de  
    7878        <div th:each="rating: ${movie.getRates()}" style="margin-bottom: 10px; border: 2px solid gray; border-radius: 10px; background-color: lightblue; padding: 10px; border-radius: 10px; min-height: 130px;">
    7979                <div style="width: 60%; float:left;">
     80                    <a th:href="@{'/profiles/{id}' (id=${rating.getUser().getUserId()})}">
     81                        <h4 th:text="${'Oд: '+rating.getUser().getName() + ' ' + rating.getUser().getSurname()}"> </h4>
     82                    </a>
    8083                    <p th:text="${rating.getReason()}" style="text-align: justify"></p>
    8184                </div>
     
    9396        <div th:each="liked: ${movie.getLikes()}" style="margin-bottom: 10px; border: 2px solid gray; border-radius: 10px; background-color: lightblue; padding: 10px; border-radius: 10px; min-height: 60px;">
    9497            <div style="width: 100%; float:left;">
    95                 <h3  style="text-align: center">
    96                     <span th:text="${liked.getUser().getName() + ' ' + liked.getUser().getSurname()}"></span>
    97                     <span style="color: green; font-size: 100%" >✔</span>
    98                 </h3>
     98                <a th:href="@{'/profiles/{id}' (id=${liked.getUser().getUserId()})}" >
     99                    <h3  style="text-align: center">
     100                        <span th:text="${liked.getUser().getName() + ' ' + liked.getUser().getSurname()}"></span>
     101                        <span style="color: green; font-size: 100%" >✔</span>
     102                    </h3>
     103                </a>
    99104            </div>
    100105        </div>
Note: See TracChangeset for help on using the changeset viewer.