From 5ac83efd59ab85d0bdf82d5847fe9fe0b11232d9 Mon Sep 17 00:00:00 2001 From: Elias Haugsbakk Date: Wed, 22 Jul 2026 14:14:24 +0200 Subject: update article to post on the backend and blog on the frontend --- .../src/main/resources/templates/posts-search.html | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 clams-server/src/main/resources/templates/posts-search.html (limited to 'clams-server/src/main/resources/templates/posts-search.html') diff --git a/clams-server/src/main/resources/templates/posts-search.html b/clams-server/src/main/resources/templates/posts-search.html new file mode 100644 index 0000000..34a2ed5 --- /dev/null +++ b/clams-server/src/main/resources/templates/posts-search.html @@ -0,0 +1,42 @@ +{% extends "templates/layout.html" %} + +{% block content %} +
+ ← back +
+

My posts

+

For search: "{{ search_term }}" -- Found {{ results_count }} matching posts

+ +
+ + +
+
+ +
+ {% if results is empty %} +
+ {% if search_term is empty %} +

Please enter a search term to search the posts. Or go back to all posts.

+ {% else %} +

Found no posts matching "{{ search_term }}".
+ Go back to all posts.

+ {% endif %} +
+ {% else %} +
    + {% for post in results %} +
  • + + {{ post.title }} + {% if post.summary is not empty %} +
    + -- {{ post.summary }} + {% endif %} +
  • + {% endfor %} +
+ {% endif %} +
+
+{% endblock %} -- cgit v1.2.3