From 79e33481a9b21af1100d619549361ac4df93c975 Mon Sep 17 00:00:00 2001 From: Jorge Solorzano Date: Tue, 5 Jun 2018 00:39:31 -0600 Subject: [PATCH] Improve style of list search results using Bootstrap Card --- templates/search/listsearch.html | 13 ++++++++----- templates/search/sitesearch.html | 11 +++++++---- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/templates/search/listsearch.html b/templates/search/listsearch.html index 7c7ead8..071b0d3 100644 --- a/templates/search/listsearch.html +++ b/templates/search/listsearch.html @@ -53,11 +53,14 @@

Results {{firsthit}}-{{lasthit}} of {%if hitcount == 1000%}more than 1000{%else%}{{hitcount}}{%endif%}.

{%if pagelinks %}Result pages: {{pagelinks|safe}}

{%endif%} {%for hit in hits %} - {{forloop.counter0|add:firsthit}}. {{hit.subject}} [{{hit.rank|floatformat:2}}]
- From {{hit.author}} on {{hit.date}}.
- {{hit.abstract|safe}}
- https://www.postgresql.org/message-id/{{hit.messageid}}
-
+
+
+
{{forloop.counter0|add:firsthit}}. {{hit.subject}} [{{hit.rank|floatformat:2}}]
+
From {{hit.author|escape}} on {{hit.date}}
+

{{hit.abstract|safe}}

+ https://www.postgresql.org/message-id/{{hit.messageid}} +
+
{%endfor%} {%if pagelinks %}Result pages: {{pagelinks|safe}}

{%endif%} {%endif%} diff --git a/templates/search/sitesearch.html b/templates/search/sitesearch.html index bb40a76..835d610 100644 --- a/templates/search/sitesearch.html +++ b/templates/search/sitesearch.html @@ -37,10 +37,13 @@

Results {{firsthit}}-{{lasthit}} of {%if hitcount == 1000%}more than 1000{%else%}{{hitcount}}{%endif%}.

{%if pagelinks %}Result pages: {{pagelinks|safe}}

{%endif%} {%for hit in hits %} - {{forloop.counter0|add:firsthit}}. {{hit.title}} [{{hit.rank|floatformat:2}}]
-
...{{hit.abstract|safe}}...
- {{hit.url}}
-
+
+
+
{{forloop.counter0|add:firsthit}}. {{hit.title}} [{{hit.rank|floatformat:2}}]
+

...{{hit.abstract|safe}}...

+ {{hit.url}} +
+
{%endfor%} {%if pagelinks %}Result pages: {{pagelinks|safe}}

{%endif%} {%endif%} -- 2.17.0