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
  • src/main/resources/templates/moviesListPaged.html

    rad4243e r0226942  
    11<div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml">
    2 
    3     <div style="width: 70%; margin: auto">
    4         <div th:replace="fragments/searchBarName"></div>
    5         <div th:replace="fragments/searchBarGenre"></div>
    6 
     2    <div style="margin:auto; width: 60%">
     3        <div style="width: 30%; margin: auto; height: 100%; margin-bottom: 10px">
     4            <a class="btn btn-outline-dark" style="height: 100%; width: 100%; font-size: 125%" id="button_toggle_filters">Прикажи филтрирање</a>
     5        </div>
     6        <div style="width: 100%; margin: auto; transition: 200ms" id="filters_div" class="invisible-search">
     7            <div th:replace="fragments/searchBarName"></div><br>
     8            <div th:replace="fragments/searchBarGenre"></div>
     9        </div>
    710    </div>
    8 
    911    <div id="paging-section">
    1012        <div id="inner-paging" class="input-group">
     
    2527            </div>
    2628        </div>
    27     </div><br><br><br>
     29    </div><br>
    2830
    2931    <div class="container mb-4">
     
    3436        <div class="row" th:each="row: ${movie_rows}" >
    3537            <div class="col-md-3 elements" th:each="movie: ${row}" >
     38                <span th:each="genre: ${movie.getGenres()}"  th:text="${genre?.getGenre()?.getGenreType()}" hidden class="card-genre"></span>
    3639                    <div class="card-body card bg-image" th:style="'background:url(' + ${movie.getImageUrl()} + ') no-repeat center #eee;'">
    3740                        <a class="card-text-center" style="color: white" th:href="@{'/movies/{id}' (id=${movie.getMovieId()})}" >
    3841                        <h3 class="card-title title" th:text="${movie.getTitle()}"></h3>
    3942                            <span th:each="genre: ${movie.getGenres()}"  th:text="${genre?.getGenre()?.getGenreType()}" hidden class="card-genre"></span>
    40 
    4143                        </a>
    42                         <h3 class="card-text bottom" th:text="${'Rated '+movie.getImdbRating()}"></h3>
     44                        <span class="card-text bottom">
     45                            <h3 th:text="${'Оценет '+movie.getImdbRating() + '/10'}"></h3>
     46                        </span>
    4347                        <th:block sec:authorize="isAuthenticated()">
    4448                            <a class="bottom-heart btn btn-success button-add-favourite-list" th:movie-id="${movie.getMovieId()}" th:user-id="${user.getUserId()}" th:if="${!likedMovies.contains(movie)}">❤</a>
Note: See TracChangeset for help on using the changeset viewer.