Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (25 sloc) 819 Bytes
<!DOCTYPE html>
<html lang="ja" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>掲示板</title>
</head>
<body>
<h1>掲示板</h1>
<dl>
<th:block th:each="comment,iterStat:${commentList}">
<dt>
[[${iterStat.index}]] 名前:<span style="color: green;"><b th:text="${comment.name}"></b></span> [[${#dates.format(comment.date, 'yyyy/MM/dd HH:mm')}]]
</dt>
<dd th:text="${comment.comment}"></dd>
</th:block>
</dl>
<form method="post" action="/lect04/add_comment2">
<p>
<input type="submit" value="書き込む" name="submit"><br>
名前:<input type="text" name="name"><br>
<textarea name="comment"></textarea><br>
</p>
</form>
</body>
</html>
You can’t perform that action at this time.