diff options
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 31 |
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 %} |