From 4f75995e05f004ab05cbf162e414bcc310eef405 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 Jan 2021 12:59:17 -0800 Subject: html: many tweaks and improvements --- fatcat_scholar/templates/search_macros.html | 90 +++++++++++++++++------------ 1 file changed, 53 insertions(+), 37 deletions(-) (limited to 'fatcat_scholar/templates/search_macros.html') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 3ef5174..a9ac528 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -1,7 +1,7 @@ {% macro tag_label(tag) -%} {% if tag == "oa" %} - OA + {% trans %}Open Access{% endtrans %} {% elif tag == "jstor" %} JSTOR {% elif tag == "scielo" %} @@ -17,6 +17,8 @@ Szczepanski {% elif tag == "doaj" %} DOAJ + {% elif tag == "multiple-versions" %} + {% trans %}Multiple Versions{% endtrans %} {% elif tag.startswith("lang:") %} {{ tag }} {% else %} @@ -65,31 +67,25 @@ @@ -544,6 +551,15 @@
{% endmacro %} +{% macro clear_query(query) -%} + {% if query.filter_time or query.filter_type or query.filter_availability or query.sort_order %} +
+ {% trans %}Clear Filters{% endtrans %} +
+
+ {% endif %} +{% endmacro %} + {% macro query_hidden(options, selected) -%} {% if selected %} -- cgit v1.2.3