source: Git/src/main/resources/templates/discussionForType.html@ 5b447b0

main
Last change on this file since 5b447b0 was 5b447b0, checked in by Test <matonikolov77@…>, 2 years ago

Adding models and resources

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<div xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.w3.org/1999/xhtml">
2
3 <div class="container mb-4">
4 <div class="row">
5 <div class="col-12" th:if="${discussions.size() > 0}">
6 <div class="table-responsive">
7 <table class="table table-striped">
8 <thead>
9 <tr>
10 <th scope="col">Наменета</th>
11 <th scope="col">Наслов</th>
12 <th scope="col">Опис</th>
13 <th scope="col">Датум</th>
14 <th scope="col">Корисник</th>
15 <th:block sec:authorize="isAuthenticated()">
16 <th:block>
17 <th scope="col"></th>
18 <th scope="col"></th>
19 </th:block>
20 <th scope="col"></th>
21 <th scope="col"></th>
22 </th:block>
23
24 </tr>
25 </thead>
26 <tbody>
27 <tr th:each="disc : ${discussions}" class="movie">
28 <td th:text="${disc.getMovie() != null ? disc.getMovie().getTitle() : disc.getPerson().getName() + ' ' + disc.getPerson().getSurname()}"></td>
29 <td th:text="${disc.getTitle()}"></td>
30 <td th:text="${disc.getText()}"></td>
31 <td th:text="${disc.getDate()}"></td>
32 <td th:text="${disc.getUser().getUsername()}"></td>
33 <td th:if="${disc.getUser().equals(user)}"><a class="btn btn-primary" th:href="@{'/discussions/add/{id}' (id=${disc.getDiscussionId()})}">Промени</a> </td>
34 <td th:if="${disc.getUser().equals(user)}"><a class="btn btn-primary button-delete-discussion" th:discussion-id="${disc.getDiscussionId()}">Избриши</a> </td>
35
36 <th:block sec:authorize="isAuthenticated()">
37 <td th:if="${!disc.getUser().equals(user)}"><a class="btn btn-primary" th:href="@{'/replies/add/{discussionId}' (discussionId=${disc.getDiscussionId()})}">Реплицирај</a> </td>
38 <td th:if="${!disc.getUser().equals(user)}">
39 <a class="btn btn-primary">Ми се допаѓа</a>
40 <a class="btn btn-primary">Не ми се допаѓа</a>
41 </td>
42 </th:block>
43
44
45 </tr>
46 </tbody>
47 </table>
48 </div>
49 </div>
50 </div>
51 </div>
52
53</div>
Note: See TracBrowser for help on using the repository browser.