summaryrefslogtreecommitdiffhomepage
path: root/src/main/resources/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/templates/index.html')
-rw-r--r--src/main/resources/templates/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html
index ed98605..1dcef48 100644
--- a/src/main/resources/templates/index.html
+++ b/src/main/resources/templates/index.html
@@ -103,12 +103,13 @@
<!--1/2 col -->
<div th:each="article :${articles}" class="w-full md:w-1/2 p-6 flex flex-col flex-grow flex-shrink">
<div class="flex-1 bg-white rounded-t rounded-b-none overflow-hidden shadow-lg">
- <a href="#" class="flex flex-wrap no-underline hover:no-underline">
+ <a th:href="@{/articles/{articleId}(articleId=${article.id})}" class="flex flex-wrap no-underline hover:no-underline">
<img th:src="${article.photoUrl}" class="h-full w-full rounded-t pb-6">
<div th:text="${article.title}" class="w-full font-bold text-xl text-gray-900 px-6">Lorem ipsum dolor sit amet.</div>
- <p th:text="${article.content}" class="text-gray-800 font-serif text-base px-6 mb-5"></p>
+ <p class="text-gray-800 font-serif text-base px-6 mb-5"></p>
</a>
<a th:href="@{/articles/edit/{articleId}(articleId=${article.id})}" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-2 ml-4 text-sm rounded">Edit</a>
+ <a th:href="@{/articles/delete/{articleId}(articleId=${article.id})}" class="bg-red-500 hover:bg-red-700 text-white font-bold py-1 px-2 ml-4 text-sm rounded">Delete</a>
</div>
<div class="flex-none mt-auto bg-white rounded-b rounded-t-none overflow-hidden shadow-lg p-6">
<div class="flex items-center justify-between">