diff options
| author | realtradam <[email protected]> | 2024-07-11 23:20:40 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-07-11 23:20:40 -0400 |
| commit | d0e45a9093b33d4e5cb5f57fabdcb807dc8e8ff0 (patch) | |
| tree | c5e4457bdbc64d5ecbe72e43258d2c7af70063eb /src/main/resources/templates/index.html | |
| parent | 40075162def7d0a4ce9d795f4cfe83264fac50b4 (diff) | |
| download | spring-blog-d0e45a9093b33d4e5cb5f57fabdcb807dc8e8ff0.tar.gz spring-blog-d0e45a9093b33d4e5cb5f57fabdcb807dc8e8ff0.zip | |
add search functionality
Diffstat (limited to 'src/main/resources/templates/index.html')
| -rw-r--r-- | src/main/resources/templates/index.html | 5 |
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"> |
