diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-03-25 18:34:28 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-03-25 18:34:30 -0700 |
commit | c3624eaad8d5f79c52f192e7978dfa4fe69044f6 (patch) | |
tree | dfc7718c273e009afcc26a41177e5196b1b98bb3 /fatcat_scholar/templates | |
parent | 9292e1ac19aba56f1b49fc83515b1fb61ce485c7 (diff) | |
download | fatcat-scholar-c3624eaad8d5f79c52f192e7978dfa4fe69044f6.tar.gz fatcat-scholar-c3624eaad8d5f79c52f192e7978dfa4fe69044f6.zip |
initial implementation of RSS search feeds
UI integration needs work
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r-- | fatcat_scholar/templates/base.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 093d4e4..ce74f26 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -136,6 +136,21 @@ <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> + + {% endif %} <a rel="help" href="{{ lang_prefix }}/help" style="order: -1;">{{ _("User Guide") }}</a> </div> </div> |