Ignore:
Timestamp:
02/08/22 22:07:07 (2 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
  • target/classes/templates/movieShow.html

    rad4243e r0226942  
    1313<div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml" style="width: 80%; margin: auto">
    1414    <div>
    15         <div style="width: 30%; margin-right: 10px; padding:20px; border-right: 3px solid black; border-radius: 10px; float:left">
    16             <img th:src="${movie.getImageUrl()}" style="width: 90%; height: auto">
     15        <div style="width: 30%; margin-right: 10px; padding:20px; border-right: 3px solid black; border-radius: 10px; float:left" id="image-movie-section">
     16            <img th:src="${movie.getImageUrl()}" style="width: 90%; height: auto; clear: both; margin-bottom: 20px">
     17            <div id="admin-buttons">
     18                <a class="btn btn-primary" th:href="@{'/discussions/all/{id}?type=M' (id=${movie.getMovieId()})}" >Прегледај дискусии</a>
     19                <th:block sec:authorize="isAuthenticated()" >
     20                    <div>
     21                        <a class="btn btn-success button-add-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${!likedMovies.contains(movie)}">❤</a>
     22                        <a class="btn btn-danger button-remove-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${likedMovies.contains(movie)}">💔</a>
     23                    </div>
     24                    <a class="btn btn-secondary button-add-grade-movie" th:movie-id="${movie.getMovieId()}">Остави оценка</a>
     25                    <a class="btn btn-warning" th:href="@{'/movies/{id}/edit' (id=${movie.getMovieId()})}">Промени</a>
     26                    <a class="btn btn-danger button-delete-movie" th:movie-id="${movie.getMovieId()}">Избриши филм</a>
     27                </th:block>
     28            </div>
    1729        </div>
    1830
     
    2638            </h3>
    2739            <h3 th:text="${'IMDB оцена: ' + movie.getImdbRating()}"></h3>
    28             <h3 th:text="${'Прикажан на: ' + movie.getAiringDate()}"></h3>
     40            <h3 th:text="${'Прикажан на: ' + movie.getDateFormatted()}"></h3>
    2941
    3042            <div style="background-color: rgba(200,200,200,0.5); border-radius: 10px; padding:15px; ">
     
    3345            </div>
    3446
    35             <div>
     47            <div id="likes-showcase">
     48                <h4 style="text-align: center">
     49                    <span>Филмот му се допаднал на </span>
     50                    <strong th:text="${likes}" id="movie_likes_count"></strong>
     51                    <span> корисници</span>
     52                </h4>
     53            </div>
     54
     55            <div class="person-movies-list genres-listing">
    3656                <h3>Жанрови:</h3>
    3757                <ul>
     
    3959                </ul>
    4060            </div>
    41             <div>
     61            <div class="person-movies-list">
    4262                <h3>Актери:</h3>
    4363                <ul>
     
    4868        </div>
    4969    </div>
    50     <div id="admin-buttons">
    51         <a class="btn btn-primary" th:href="@{'/discussions/all/{id}?type=M' (id=${movie.getMovieId()})}" >Прегледај дискусии</a>
    52         <th:block sec:authorize="isAuthenticated()" >
    53             <a class="btn btn-success button-add-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${!likedMovies.contains(movie)}">Додади во омилена листа</a>
    54             <a class="btn btn-warning button-remove-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${likedMovies.contains(movie)}">Избриши од омилена листа</a>
    55             <a class="btn btn-success button-add-grade-movie" th:movie-id="${movie.getMovieId()}">Остави оценка</a>
    56             <a class="btn btn-warning" th:href="@{'/movies/{id}/edit' (id=${movie.getMovieId()})}">Промени</a>
    57             <a class="btn btn-danger button-delete-movie" th:movie-id="${movie.getMovieId()}">Избриши филм</a>
    58         </th:block>
    59     </div>
     70
    6071    <hr>
    6172    <div style="width: 45%; margin: 25px; float:left; background-color: rgb(200,200,200); padding: 10px; border-radius: 5px">
     
    7081                </div>
    7182                <div style="width: 30%; float:right; background-color: darkorange; border-radius: 10px 30px; color: whitesmoke; padding: 10px;">
    72                     <h2 style="text-align: center">Rated:</h2>
    73                     <p th:text="${rating.getStarsRated() + ' out of 10 stars'}" style="text-align: center"></p>
     83                    <h2 style="text-align: center">Оценет:</h2>
     84                    <p th:text="${rating.getStarsRated() + ' од 10'}" style="text-align: center"></p>
    7485                </div>
    7586        </div>
     
    7788    <div style="width: 45%; margin: 25px; float:left; background-color: rgb(200,200,200); padding: 10px; border-radius: 5px">
    7889        <h2>
    79             <span>Бројот на лајкови кои филмот ги добил:</span>
    80             <span th:text="${movie.getLikes().size()}"></span>
     90            <span>Лајковите кои филмот ги добил:</span>
    8191        </h2>
    8292        <hr>
Note: See TracChangeset for help on using the changeset viewer.