From b6866c2c2bbcd5501e9d3fe073adfa65e5464aa0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 May 2020 16:30:14 -0700 Subject: mobile CSS/style changes, and other small UI tweaks --- fatcat_scholar/templates/search.html | 69 ++++++++++++++++++++++++++++-------- 1 file changed, 54 insertions(+), 15 deletions(-) (limited to 'fatcat_scholar/templates/search.html') diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index 6d9fec2..10eda61 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -1,20 +1,40 @@ {% import "search_macros.html" as search_macros %} {% extends "base.html" %} -{% block fullbody %} -
-
+{% block fullmain %} +
+
+ Filters +

+ {{ search_macros.query_option(query.time_options, query.filter_time) }} + {{ search_macros.query_option(query.type_options, query.filter_type) }} + {{ search_macros.query_option(query.availability_options, query.filter_availability) }} + {{ search_macros.query_option(query.sort_options, query.sort_order) }} +

+
+ + {% if hits %} + {#

{{ "{:,}".format(hits.count_found) }}

#} + {{ "{:,}".format(hits.count_found) }} + Hits + in {{ "{:0.2}".format(hits.query_time_ms/1000.0) }}sec + {% endif %} +
+ +
+ +
{% if hits %} -
- {#

{{ "{:,}".format(hits.count_found) }}

#} -

{{ "{:,}".format(hits.count_found) }}

- Hits -
-
- in {{ "{:0.2}".format(hits.query_time_ms/1000.0) }}sec -
-
+
+ {#

{{ "{:,}".format(hits.count_found) }}

#} +

{{ "{:,}".format(hits.count_found) }}

+ Hits +
+
+ in {{ "{:0.2}".format(hits.query_time_ms/1000.0) }}sec +
+
{% endif %}
@@ -25,20 +45,39 @@
-
+ +
{% if search_error %}
Query Error

{{ search_error }}

- {% elif hits %} + {% elif hits and hits.results %} {% if hits.results %} {% for paper in hits.results %} {{ search_macros.fulltext_search_result_row(paper) }} {% endfor %} {% endif %} + {% elif hits %} +
+
+ + We didn't find any documents matching your query +
+ +
{% else %} - No search submitted? Some message should go here. +
+
+ + Enter a query in the box above to get started +
+
{% endif %}
-- cgit v1.2.3