summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/base.html20
1 files changed, 7 insertions, 13 deletions
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 @@
<div style="display: flex; width: 100%; justify-content: space-between; padding-top: 0.5em;">
<div></div>
<div>
- {% if query %}
- <form class="" id="rss_feed_form" name="rss_feed_form" action="{{ lang_prefix }}/feed/rss" method="get">
- <input form="rss_feed_form" type="hidden" name="q" value="{{ query.q }}">
- {% if query.filter_type %}
- <input form="rss_feed_form" type="hidden" name="filter_type" value="{{ query.filter_type }}">
- {% endif %}
- {% if query.filter_availability %}
- <input form="rss_feed_form" type="hidden" name="filter_availability" value="{{ query.filter_availability }}">
- {% endif %}
- <button class="text-button" form="rss_feed_form" type="submit">
- {% trans %}RSS Feed{% endtrans %}
- </button>
- </form>
+ {% 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 %}
+ <a href="{{ lang_prefix }}/feed/rss?{{ rss_params | urlencode }}" rel="nofollow">
+ {% trans %}RSS Feed{% endtrans %}
+ </a>
&nbsp;
{% endif %}
<a rel="help" href="{{ lang_prefix }}/help" style="order: -1;">{{ _("User Guide") }}</a>