diff options
| author | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2014-12-08 01:01:33 +0100 |
|---|---|---|
| committer | Cqoicebordel <Cqoicebordel@users.noreply.github.com> | 2014-12-08 01:01:33 +0100 |
| commit | 34b5d9566988652063c27b48d45b1cd02ddb3be5 (patch) | |
| tree | 2b36422cd361e6c043b75fcdae2fe1d480199092 | |
| parent | c2e88339f7bb84e719e943b427a9afcdd84981aa (diff) | |
UX and HTML corrections
Put the infobox first. Result first is more useful for the user.
Add id in form for "for".
htmlentities in the URL.
Take care of spaces in categories.
| -rw-r--r-- | searx/templates/oscar/results.html | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index deda276fa..69f8c9237 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -51,6 +51,11 @@ </div><!-- /#main_results -->
<div class="col-sm-4" id="sidebar_results">
+ {% if infoboxes %}
+ {% for infobox in infoboxes %}
+ {% include 'oscar/infobox.html' %}
+ {% endfor %}
+ {% endif %}
{% if suggestions %}
<div class="panel panel-default">
@@ -76,7 +81,7 @@ <form role="form">
<div class="form-group">
<label for="search_url">{{ _('Search URL') }}</label>
- <input type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}{% if selected_categories %}&category_{{ selected_categories|join("&category_") }}{% endif %}" readonly>
+ <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}{% if selected_categories %}&category_{{ selected_categories|join("&category_")|replace(' ','+') }}{% endif %}" readonly>
</div>
</form>
@@ -94,13 +99,6 @@ <div class="clearfix"></div>
</div>
</div>
-
- {% if infoboxes %}
- {% for infobox in infoboxes %}
- {% include 'oscar/infobox.html' %}
- {% endfor %}
- {% endif %}
-
</div><!-- /#sidebar_results -->
</div>
{% endblock %}
|