aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_covid19/templates/fulltext_search.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-09 17:49:49 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-09 17:49:49 -0700
commitee7d9a60092ebd7ede167bcc4ec1aa1477a714c2 (patch)
tree96e4c4e6e03e4828e1c0755886506271b9c4355e /fatcat_covid19/templates/fulltext_search.html
parent8b3b3e5892a10bf6748c7824549641d20e2447d7 (diff)
downloadfatcat-covid19-ee7d9a60092ebd7ede167bcc4ec1aa1477a714c2.tar.gz
fatcat-covid19-ee7d9a60092ebd7ede167bcc4ec1aa1477a714c2.zip
fix webface bugs with default filter values
Diffstat (limited to 'fatcat_covid19/templates/fulltext_search.html')
-rw-r--r--fatcat_covid19/templates/fulltext_search.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_covid19/templates/fulltext_search.html b/fatcat_covid19/templates/fulltext_search.html
index 55b25cc..f668b19 100644
--- a/fatcat_covid19/templates/fulltext_search.html
+++ b/fatcat_covid19/templates/fulltext_search.html
@@ -43,7 +43,7 @@
{{ _("from") }}
<div class="ui inline dropdown">
- <input type="hidden" name="filter_time" value="{{ filter_time or 'all' }}">
+ <input type="hidden" name="filter_time" value="{{ filter_time or 'all_time' }}">
<div class="text">{{ (filter_time and filter_time.replace("_", " ")) or "all time" }}</div>
<i class="dropdown icon"></i>
<div class="menu">
@@ -52,7 +52,7 @@
{{ _("Time Period") }}
</div>
<div class="divider"></div>
- <div class="{% if filter_type == 'all' %}active{% endif %} item" data-value="all" >{{ _("all time") }}</div>
+ <div class="{% if filter_type == 'all_time' %}active{% endif %} item" data-value="all_time" >{{ _("all time") }}</div>
<div class="{% if filter_type == 'past_week' %}active{% endif %} item" data-value="past_week" >{{ _("past week") }}</div>
<div class="{% if filter_type == 'this_year' %}active{% endif %} item" data-value="this_year" >{{ _("this year") }}</div>
<div class="{% if filter_type == 'since_2000' %}active{% endif %} item" data-value="since_2000" >{{ _("since 2000") }}</div>