From cbfa0d9e1ed1dca6fa34f134cf81d4dd8a0a99f8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 2 Apr 2020 16:14:22 -0700 Subject: webface: refactoring of style --- fatcat_covid19/templates/fulltext_search.html | 78 ++++++++++++++++----------- 1 file changed, 47 insertions(+), 31 deletions(-) (limited to 'fatcat_covid19/templates/fulltext_search.html') diff --git a/fatcat_covid19/templates/fulltext_search.html b/fatcat_covid19/templates/fulltext_search.html index dd42f9b..f1f2c6b 100644 --- a/fatcat_covid19/templates/fulltext_search.html +++ b/fatcat_covid19/templates/fulltext_search.html @@ -12,7 +12,7 @@ {% block fullmain %} -
+

Search all COVID-19 Resources

@@ -31,42 +31,58 @@
-
-
{% if found %} -{% if found.results %} - {{ entity_macros.top_results(found) }} + {% if found.results %} - {% for paper in found.results %} - {{ entity_macros.fulltext_search_result_row(paper) }} -{% endfor %} -{% if found.results|length > 8 %} -
-
- {{ entity_macros.bottom_results(found)}} -
-{% endif %} -{% else %} +
+ {{ entity_macros.top_results(found) }} +
+
+
+ {% for paper in found.results %} + {{ entity_macros.fulltext_search_result_row(paper) }} + {% endfor %} +
+
+ {% if found.results|length > 8 %} +
+
+
+ {{ entity_macros.bottom_results(found)}} +
+
+ {% endif %} -Raw query was: {{ found.query.q }} + {% else %} + {# "did a query, but no results" #} +
+
+ Raw query was: {{ found.query.q }} -
-
-
- confused paper man +
+
+ {# +
+ confused paper man +
+ #} +
+

No results found!

+

You could try elsewhere:

+ +
+
+
-
-

No results found!

-

You could try elsewhere:

- -
-{% endif %} + + {% endif %} +{% else %} + {# "no query submitted" #} {% endif %} -
{% endblock %} -- cgit v1.2.3