[f25e8dd] | 1 | <style>
|
---|
| 2 | #admin-buttons button{
|
---|
| 3 | float:left;
|
---|
| 4 | margin: 20px !important;
|
---|
| 5 | }
|
---|
| 6 |
|
---|
| 7 | #admin-buttons{
|
---|
| 8 | width: 60%;
|
---|
| 9 | margin: auto;
|
---|
| 10 | }
|
---|
| 11 | </style>
|
---|
| 12 |
|
---|
| 13 | <div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml" style="width: 80%; margin: auto">
|
---|
| 14 | <div>
|
---|
[c02189f] | 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>
|
---|
[f25e8dd] | 29 | </div>
|
---|
| 30 |
|
---|
| 31 | <div style="width: 60%; margin-left: 10px; padding:20px; float:left">
|
---|
| 32 | <h1 th:text="${movie.getTitle()}" style="text-align: center; padding:10px; background-color: rgba(64,64,64,0.5); color:white; border-radius: 10px 0px"></h1>
|
---|
| 33 | <hr>
|
---|
| 34 | <h3>
|
---|
| 35 | <span>Режисер:</span>
|
---|
| 36 | <a th:if="${movie.getDirector() != null}" th:text="${movie.getDirector().getName() + ' ' + movie.getDirector().getSurname()}" th:href="@{'/persons/{id}' (id=${movie.getDirector().getPersonId()})}"></a>
|
---|
| 37 | <span th:if="${movie.getDirector() == null}"> / </span>
|
---|
| 38 | </h3>
|
---|
| 39 | <h3 th:text="${'IMDB оцена: ' + movie.getImdbRating()}"></h3>
|
---|
[c02189f] | 40 | <h3 th:text="${'Прикажан на: ' + movie.getDateFormatted()}"></h3>
|
---|
[f25e8dd] | 41 |
|
---|
| 42 | <div style="background-color: rgba(200,200,200,0.5); border-radius: 10px; padding:15px; ">
|
---|
| 43 | <h3>Краток опис:</h3>
|
---|
| 44 | <p th:text="${movie.getDescription()}" style="text-align: justify"></p>
|
---|
| 45 | </div>
|
---|
| 46 |
|
---|
[c02189f] | 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">
|
---|
[f25e8dd] | 56 | <h3>Жанрови:</h3>
|
---|
| 57 | <ul>
|
---|
| 58 | <li th:each="genre: ${movie.getGenres()}" th:text="${genre.getGenre().getGenreType()}"></li>
|
---|
| 59 | </ul>
|
---|
| 60 | </div>
|
---|
[c02189f] | 61 | <div class="person-movies-list">
|
---|
[f25e8dd] | 62 | <h3>Актери:</h3>
|
---|
| 63 | <ul>
|
---|
| 64 | <li th:each="actor: ${movie.getActors()}"><a th:text="${actor.getPerson().getName() + ' ' + actor.getPerson().getSurname()}" th:href="@{'/persons/{id}' (id=${actor.getPerson().getPersonId()})}" ></a></li>
|
---|
| 65 | </ul>
|
---|
| 66 | </div>
|
---|
| 67 |
|
---|
| 68 | </div>
|
---|
| 69 | </div>
|
---|
[c02189f] | 70 |
|
---|
[f25e8dd] | 71 | <hr>
|
---|
| 72 | <div style="width: 45%; margin: 25px; float:left; background-color: rgb(200,200,200); padding: 10px; border-radius: 5px">
|
---|
| 73 | <h2>
|
---|
| 74 | <span>Бројот на оцени кои филмот ги добил:</span>
|
---|
| 75 | <span th:text="${movie.getRates().size()}"></span>
|
---|
| 76 | </h2>
|
---|
| 77 | <hr>
|
---|
| 78 | <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;">
|
---|
| 79 | <div style="width: 60%; float:left;">
|
---|
[3fe36de] | 80 | <a th:href="@{'/profiles/{id}' (id=${rating.getUser().getUserId()})}">
|
---|
| 81 | <h4 th:text="${'Oд: '+rating.getUser().getName() + ' ' + rating.getUser().getSurname()}"> </h4>
|
---|
| 82 | </a>
|
---|
[f25e8dd] | 83 | <p th:text="${rating.getReason()}" style="text-align: justify"></p>
|
---|
| 84 | </div>
|
---|
| 85 | <div style="width: 30%; float:right; background-color: darkorange; border-radius: 10px 30px; color: whitesmoke; padding: 10px;">
|
---|
[c02189f] | 86 | <h2 style="text-align: center">Оценет:</h2>
|
---|
| 87 | <p th:text="${rating.getStarsRated() + ' од 10'}" style="text-align: center"></p>
|
---|
[f25e8dd] | 88 | </div>
|
---|
| 89 | </div>
|
---|
| 90 | </div>
|
---|
| 91 | <div style="width: 45%; margin: 25px; float:left; background-color: rgb(200,200,200); padding: 10px; border-radius: 5px">
|
---|
| 92 | <h2>
|
---|
[c02189f] | 93 | <span>Лајковите кои филмот ги добил:</span>
|
---|
[f25e8dd] | 94 | </h2>
|
---|
| 95 | <hr>
|
---|
| 96 | <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;">
|
---|
| 97 | <div style="width: 100%; float:left;">
|
---|
[3fe36de] | 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>
|
---|
[f25e8dd] | 104 | </div>
|
---|
| 105 | </div>
|
---|
| 106 | </div>
|
---|
| 107 | </div> |
---|