simple-web-app

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 389266339ca3563372ef75815c77a5a3b6291ef7
parent bbb0901f4344329ebe9a3a6f25cdca1877f0c3c7
Author: Silas Brack <silasbrack@gmail.com>
Date:   Thu,  2 Oct 2025 19:23:19 +0200

feat: improve news card

Diffstat:
Msrc/simple_web_app/templates/news_card.html | 43+++++++++++++++++++++----------------------
1 file changed, 21 insertions(+), 22 deletions(-)

diff --git a/src/simple_web_app/templates/news_card.html b/src/simple_web_app/templates/news_card.html @@ -1,22 +1,21 @@ -<article> - <header> - <nav><ul> - {% for category in new.categories %} - <li><div style="cursor: pointer;" hx-get="/?category-id={{ category.id }}" hx-target="#news-cards" preload><small>{{ category.name }}</small></div></small></li> - {% endfor %} - </ul></nav> - </header> - <details> - <summary> - <strong>{{ new.title }}</strong> - </summary> - <p><small>{{ new.text }}</small></p> - </details> - <footer> - <small> - <em> - {{ new.time_since_published }} - </em> - </small> - </footer> -</article> +<header> +<nav><ul> +{% for category in new.categories %} +<li><div style="cursor: pointer;" hx-get="/?category-id={{ category.id }}" hx-target="#news-cards" preload><small>{{ category.name }}</small></div></small></li> +{% endfor %} +</ul></nav> +</header> +<details> +<summary> +<strong>{{ new.title }}</strong> +</summary> +<p><small>{{ new.text }}</small></p> +</details> +<footer> + <small> + <em> + {{ new.time_since_published }} + </em> + </small> +</footer> +<hr>