summaryrefslogtreecommitdiffhomepage
path: root/src/main/resources/templates/index.html
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-07-11 19:18:30 -0400
committerrealtradam <[email protected]>2024-07-11 19:18:30 -0400
commit32195042c7e3fd75f25323b9036a2481e48fd6f8 (patch)
treea483d63e3ec9a294dfdf876a0c7ae883af7dc48b /src/main/resources/templates/index.html
parentd5ab38e1bc8a5519720f413cee6573fbe31da986 (diff)
downloadspring-blog-32195042c7e3fd75f25323b9036a2481e48fd6f8.tar.gz
spring-blog-32195042c7e3fd75f25323b9036a2481e48fd6f8.zip
add editing to articles
Diffstat (limited to 'src/main/resources/templates/index.html')
-rw-r--r--src/main/resources/templates/index.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html
index 611ef92..ed98605 100644
--- a/src/main/resources/templates/index.html
+++ b/src/main/resources/templates/index.html
@@ -108,6 +108,7 @@
<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>
</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>
</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">