From 8a4935f7ba29cc39781c0d3169e81d6af3bd5761 Mon Sep 17 00:00:00 2001 From: Elias Haugsbakk Date: Wed, 22 Jul 2026 00:23:50 +0200 Subject: refine article styling --- .../main/resources/templates/articles-search.html | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 clams-server/src/main/resources/templates/articles-search.html (limited to 'clams-server/src/main/resources/templates/articles-search.html') diff --git a/clams-server/src/main/resources/templates/articles-search.html b/clams-server/src/main/resources/templates/articles-search.html new file mode 100644 index 0000000..dd435e5 --- /dev/null +++ b/clams-server/src/main/resources/templates/articles-search.html @@ -0,0 +1,41 @@ +{% extends "templates/layout.html" %} + +{% block content %} +
+ ← back +
+

My articles

+

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

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

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

+ {% else %} +

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

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