aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-15 00:41:47 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-15 00:41:47 -0800
commit00bbe2124fc04f252a3074058bcb4871d970ae70 (patch)
tree3fab8b9283b63ee7c363ec30298369769c563680 /fatcat_scholar/templates/search_macros.html
parentb8ce4a29d8ba996c6b5eb9c1dd233d2161b70524 (diff)
downloadfatcat-scholar-00bbe2124fc04f252a3074058bcb4871d970ae70.tar.gz
fatcat-scholar-00bbe2124fc04f252a3074058bcb4871d970ae70.zip
html: improvements to reactive search filters and main serp column
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r--fatcat_scholar/templates/search_macros.html31
1 files changed, 16 insertions, 15 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index cf20133..229d481 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -344,21 +344,22 @@
{% endmacro %}
{% macro query_option(options, selected) -%}
-<label for="{{ options.slug }}" style="color: rgba(0,0,0,0.55);">{{ _(options.label) }}</label>
-<div class="ui link list" style="margin-top: 0.3em;">
- {% for opt in options.list %}
- <button class="text-button" form="search_form" type="submit" name="{{ options.slug }}" value="{{ opt.slug }}">
- {% if selected == opt.slug or (not selected and opt.slug == options.default) %}
- <span style="font-weight: bold;">
- {% else %}
- <span>
- {% endif %}
- {{ _(opt.label) }}
- </span>
- </button>
- <br>
- </span>
- {% endfor %}
+<div>
+ <label for="{{ options.slug }}" style="color: rgba(0,0,0,0.55);">{{ _(options.label) }}</label>
+ <div class="ui link list" style="margin-top: 0.3em;">
+ {% for opt in options.list %}
+ <button class="text-button" form="search_form" type="submit" name="{{ options.slug }}" value="{{ opt.slug }}">
+ {% if selected == opt.slug or (not selected and opt.slug == options.default) %}
+ <span style="font-weight: bold;">
+ {% else %}
+ <span>
+ {% endif %}
+ {{ _(opt.label) }}
+ </span>
+ </button>
+ <br>
+ {% endfor %}
+ </div>
</div>
<br>
{% endmacro %}