From 82ad3593a4735055d9b362ab94bc4a9e4f20e4a4 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 4 Feb 2026 17:04:55 +0100 Subject: feat(frontend): smaller list display instead of bigger one --- backend/templates/components.html | 52 ++++++++++++++++++++++++++++----------- 1 file changed, 38 insertions(+), 14 deletions(-) (limited to 'backend/templates/components.html') diff --git a/backend/templates/components.html b/backend/templates/components.html index e49a8c4..bf555f0 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -13,27 +13,51 @@ {{ end }} {{ end }} -{{ define "section_display" }} -
- {{ $uri := .URI }} - {{ range .Data }} - - {{ end }} +{{ define "data_display" }} + +{{ end }} +{{ define "section_pagination" }} +{{ end }} +{{ define "section_display--no-first" }} +
+ {{ range .Data }} + {{ template "data_display" . }} + {{ end }} + {{ template "section_pagination" . }} +
+{{ end }} +{{ define "section_display" }} +
+ {{ $first := firstData .Data }} +
+

{{ $first.DataTitle }}

+
+ {{ $first.Img.Alt }} +
{{ $first.Img.Legend }}
+
+

{{ $first.Description }}

+
+ {{ range restData .Data }} + {{ template "data_display" . }} + {{ end }} + {{ template "section_pagination" . }}
{{ end }} -- cgit v1.2.3