summaryrefslogtreecommitdiff
path: root/searx/templates/default/results.html
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-15 01:48:46 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-15 01:48:46 +0100
commit389fc3b8b27e52a0959c4008ad303337f1c3c827 (patch)
treea2e20ff4a218f3543356759f84a99b512ba77091 /searx/templates/default/results.html
parent08df681b48aa32abfcf7420be30c669684dbc57e (diff)
Few fixes
- Whitespaces - Change a few <p> in <span> - Add RSS to allow browser detection - A few UIUX changes - Add a few more allowed translations
Diffstat (limited to 'searx/templates/default/results.html')
-rw-r--r--searx/templates/default/results.html23
1 files changed, 13 insertions, 10 deletions
diff --git a/searx/templates/default/results.html b/searx/templates/default/results.html
index 822960593..c83bf5c5d 100644
--- a/searx/templates/default/results.html
+++ b/searx/templates/default/results.html
@@ -1,5 +1,6 @@
{% extends "default/base.html" %}
{% block title %}{{ q }} - {% endblock %}
+{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&amp;format=rss&amp;{% for category in selected_categories %}category_{{ category }}=1&amp;{% endfor %}pageno={{ pageno }}">{% endblock %}
{% block content %}
<div class="preferences_container right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div>
<div class="small search center">
@@ -39,12 +40,14 @@
{% endif %}
{% if suggestions %}
- <div id="suggestions"><span>{{ _('Suggestions') }}</span>
+ <div id="suggestions"><span id="suggestions-title">{{ _('Suggestions') }} : </span>
+ {% set first = true %}
{% for suggestion in suggestions %}
- <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
+ {% if not first %} &bull; {% endif %}<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<input type="hidden" name="q" value="{{ suggestion }}">
- <input type="submit" value="{{ suggestion }}" />
+ <input type="submit" class="suggestion" value="{{ suggestion }}" />
</form>
+ {% set first = false %}
{% endfor %}
</div>
{% endif %}
@@ -55,7 +58,7 @@
{% include 'default/infobox.html' %}
{% endfor %}
</div>
- {% endif %}
+ {% endif %}
{% for result in results %}
{% if result['template'] %}
@@ -81,12 +84,12 @@
{% endif %}
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<div class="right">
- {% for category in selected_categories %}
- <input type="hidden" name="category_{{ category }}" value="1"/>
- {% endfor %}
- <input type="hidden" name="q" value="{{ q }}" />
- <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
- <input type="submit" value="{{ _('next page') }} >>" />
+ {% for category in selected_categories %}
+ <input type="hidden" name="category_{{ category }}" value="1"/>
+ {% endfor %}
+ <input type="hidden" name="q" value="{{ q }}" />
+ <input type="hidden" name="pageno" value="{{ pageno+1 }}" />
+ <input type="submit" value="{{ _('next page') }} >>" />
</div>
</form>