main
Last change
on this file since 7f36551 was f25e8dd, checked in by Petar Partaloski <ppartaloski@…>, 2 years ago |
Fixed and added a better front end, improved clarity
|
-
Property mode
set to
100644
|
File size:
2.7 KB
|
Rev | Line | |
---|
[5b447b0] | 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:block sec:authorize="isAuthenticated()">
|
---|
| 15 | <th:block>
|
---|
| 16 | <th scope="col"></th>
|
---|
| 17 | <th scope="col"></th>
|
---|
| 18 | </th:block>
|
---|
| 19 | <th scope="col"></th>
|
---|
| 20 | <th scope="col"></th>
|
---|
| 21 | </th:block>
|
---|
| 22 |
|
---|
| 23 | </tr>
|
---|
| 24 | </thead>
|
---|
| 25 | <tbody>
|
---|
| 26 | <tr th:each="disc : ${discussions}" class="movie">
|
---|
[f25e8dd] | 27 | <td>
|
---|
| 28 | <a th:text="${disc.getTitle()}" th:href="@{'/discussions/{id}' (id=${disc.getDiscussionId()})}"></a>
|
---|
| 29 | </td>
|
---|
[5b447b0] | 30 | <td th:text="${disc.getText()}"></td>
|
---|
| 31 | <td th:text="${disc.getDate()}"></td>
|
---|
| 32 | <td th:text="${disc.getUser().getUsername()}"></td>
|
---|
[f25e8dd] | 33 | <td th:if="${disc.getUser().equals(user)}"><a class="btn btn-warning" th:href="@{'/discussions/add/{id}' (id=${disc.getDiscussionId()})}">Измени</a> </td>
|
---|
| 34 | <td th:if="${disc.getUser().equals(user)}"><a class="btn btn-danger button-delete-discussion" th:discussion-id="${disc.getDiscussionId()}">Избриши</a> </td>
|
---|
[5b447b0] | 35 |
|
---|
| 36 | <th:block sec:authorize="isAuthenticated()">
|
---|
[f25e8dd] | 37 | <td th:if="${!disc.getUser().equals(user)}"><a class="btn btn-success" th:href="@{'/replies/add/{discussionId}' (discussionId=${disc.getDiscussionId()})}">Реплицирај</a> </td>
|
---|
[5b447b0] | 38 | <td th:if="${!disc.getUser().equals(user)}">
|
---|
[f25e8dd] | 39 | <a class="btn btn-success">👍 </a>
|
---|
| 40 | <a class="btn btn-danger">👎</a>
|
---|
[5b447b0] | 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.