source: src/main/resources/templates/reportedPosts.html@ 0c37625

Last change on this file since 0c37625 was 0c37625, checked in by NikolaCenevski <cenevskinikola@…>, 3 years ago

Moderator pagination

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<!DOCTYPE html>
2<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
3<head>
4 <meta charset="UTF-8"/>
5 <meta name="viewport" content="width=device-width, initial-scale=1"/>
6 <title>Album</title>
7 <!-- Bootstrap core CSS -->
8 <link href="/css/bootstrap.min.css" rel="stylesheet"/>
9</head>
10<body>
11<header th:replace="common/navbar :: navbar"></header>
12<hr class="dropdown-divider">
13<br/>
14<br/>
15<main>
16 <p th:if="${noPosts}">No posts</p>
17 <div th:unless="${noPosts}" class="album py-5 bg-light">
18 <div class="container">
19 <div class="row">
20 <div class="col-md-2">
21 <label class="form-label" for="sortBy">Sort By</label>
22 <select class="input-group-text" id="sortBy">
23 <option value="id">Default</option>
24 <option value="numReports">Number of reports</option>
25 </select>
26 </div>
27 <div class="col-md-2">
28 <label class="form-label" for="order">Order</label>
29 <select class="input-group-text" id="order">
30 <option value="asc">Ascending</option>
31 <option value="desc">Descending</option>
32 </select>
33 </div>
34 </div>
35 <br/>
36 <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
37 <div class="col" th:each="post : ${postList}">
38 <div class="card shadow-sm">
39 <img class="card-img" style="object-fit: contain" width="100%" height="225"
40 th:src="${post.donationPost.imagesPath[0]}">
41 <div class="card-body overflow-hidden">
42 <h4 th:text="${post.donationPost.title}" style="height: 60px"></h4>
43 <p class="card-text text-truncate" style="height: 45px" th:text="${post.donationPost.description}"></p>
44 <div class="d-flex justify-content-between align-items-center">
45 <div class="btn-group">
46 <a class="btn btn-sm btn-outline-secondary" th:href="@{/moderator/reportPost(postid=${post.id})}">Open</a>
47 </div>
48 <span class="text-muted">Number of reports: <small th:text="${post.numReports}"></small></span>
49 </div>
50 </div>
51 </div>
52 </div>
53 </div>
54 </div>
55 <hr class="ui-menu-divider" />
56 <nav>
57 <div id="pagination"></div>
58 </nav>
59 </div>
60
61</main>
62<script src="/js/bootstrap.min.js"></script>
63<script id="helper" src="/js/pagination.js" th:data-pages="${totalPages}"></script>
64</body>
65</html>
Note: See TracBrowser for help on using the repository browser.