commit: 016a0ffe8a0b97cd89e15e95a1cec5465d9c516e
parent 096ffd0659ea93a1de0009e37e49f71d576d2de6
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Sun, 18 Jan 2015 13:03:53 +0100
[enh] show js warning only if menu can't be used or inside preferences
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
@@ -57,7 +57,9 @@
{% endblock %}
{% block site_alert_warning_nojs %}
<noscript>
+ <div class="visible-xs-block">
{% include 'oscar/messages/js_disabled.html' %}
+ </div>
</noscript>
{% endblock %}
{% block site_alert_info %}
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
@@ -1,5 +1,10 @@
{% extends "oscar/base.html" %}
{% block title %}{{ _('preferences') }} - {% endblock %}
+{% block site_alert_warning_nojs %}
+<noscript>
+ {% include 'oscar/messages/js_disabled.html' %}
+</noscript>
+{% endblock %}
{% block content %}
<div>