From 3ffd2f69b9c988d0906922a9acd7dfebb4d9d10d Mon Sep 17 00:00:00 2001
From: Chantal Trutmann
Date: Tue, 31 Dec 2024 15:14:09 +0100
Subject: [PATCH] Unify search view for all search results
---
src/onegov/town6/templates/macros.pt | 77 ++++++++++++++---------
src/onegov/town6/theme/styles/search.scss | 4 ++
2 files changed, 52 insertions(+), 29 deletions(-)
diff --git a/src/onegov/town6/templates/macros.pt b/src/onegov/town6/templates/macros.pt
index 534836cbc5..bcb07caa68 100644
--- a/src/onegov/town6/templates/macros.pt
+++ b/src/onegov/town6/templates/macros.pt
@@ -1796,17 +1796,23 @@
- ${result.title}
-
- - ${translate(result.role.capitalize())}
-
+
+ ${result.title}
+
+
+ ${translate(result.role.capitalize())}
+
- ${result.name}
-
+
+
- ${result.number}
-
- - ${translate(result.group)}
-
-
-
+
+
+ ${result.number}
+
+
+
+
+
+ ${translate(result.group)}
+
+
+
+
- ${result.title}
-
- -
+
+
+ ${result.title}
+
+
+
+
${
'{}, {} - {}'.format(
layout.format_date(latest.localized_start, 'event'),
layout.format_date(latest.localized_start, 'time'),
layout.format_date(latest.localized_end, 'time')
)
- }
-
- - ${result.location}
-
-
+ }
+
+
+ ${result.location}
+
+
+
-
+
+
@@ -1876,8 +1895,8 @@
${result.title}
- ${result.function}
- People
+ ${result.function}
+ People
@@ -1886,7 +1905,7 @@
${result.title}
-
+
${result.lead[:160]}…
@@ -1899,7 +1918,7 @@
${result.title}
-
+
${result.lead[:160]}…
diff --git a/src/onegov/town6/theme/styles/search.scss b/src/onegov/town6/theme/styles/search.scss
index dc22f54a3c..215f680b37 100644
--- a/src/onegov/town6/theme/styles/search.scss
+++ b/src/onegov/town6/theme/styles/search.scss
@@ -141,3 +141,7 @@
font-size: .8rem;
padding: 0 3px;
}
+
+.search-preview {
+ color: $jumbo;
+}
\ No newline at end of file