Try to add forum system: added controller for topic-content.html page

This commit is contained in:
redtea committed 2022-08-29 16:08:01 +03:00
1 parent 3b5a6aab84
commit bad1108f94
3 files changed
+32 -6

No files matched your search

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8">
<title th:text="'Обсуждение. Страница' + ${page_index}"></title>
</head>
<body>
<main>
<h2>Сообщения</h2>
<div th:each="el : ${discussions}">
<h2 th:text="${el.title}"/>
<p th:text="'Автор: ' + ${el.author}"/>
<p th:text="'Дата создания: ' + ${#dates.format(el.date, 'hh:mm dd MMM yyyy')}"/>
<p th:text="'Последнее обновление: ' + ${#dates.format(el.last_update, 'hh:mm dd MMM yyyy')}"/>
</div>
</main>
</body>
</html>
@@ -4,7 +4,7 @@
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8">
<title>Вход</title>
<title>Обсуждение</title>
</head>