From ddf54c9670c6d4adb500e08342d831cf1214d641 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 6 Apr 2022 17:40:30 -0700 Subject: polish RSS feed generation, and add basic test coverage --- fatcat_scholar/templates/base.html | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'fatcat_scholar/templates/base.html') diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index ce74f26..1abc216 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -136,19 +136,13 @@
- {% if query %} -
- - {% if query.filter_type %} - - {% endif %} - {% if query.filter_availability %} - - {% endif %} - -
+ {% if query and query.q %} + {% set rss_params = dict(q=query.q) %} + {% if query.filter_type %}{% do rss_params.update(dict(filter_type= query.filter_type)) %}{% endif %} + {% if query.filter_availability %}{% do rss_params.update(dict(filter_availabilty=query.filter_availability)) %}{% endif %} + + {% trans %}RSS Feed{% endtrans %} +   {% endif %} {{ _("User Guide") }} -- cgit v1.2.3