diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-01-18 13:03:53 +0100 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-01-18 13:03:53 +0100 |
commit | 016a0ffe8a0b97cd89e15e95a1cec5465d9c516e (patch) | |
tree | 18a53ec14920b5c2b59fa4beaf7b0f93cf7a9767 /searx/templates | |
parent | 096ffd0659ea93a1de0009e37e49f71d576d2de6 (diff) | |
download | searxng-016a0ffe8a0b97cd89e15e95a1cec5465d9c516e.tar.gz searxng-016a0ffe8a0b97cd89e15e95a1cec5465d9c516e.zip |
[enh] show js warning only if menu can't be used or inside preferences
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/oscar/base.html | 2 | ||||
-rw-r--r-- | searx/templates/oscar/preferences.html | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html index c39de0460..5a3ba9f42 100644 --- 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 index 352c7d551..14bbace32 100644 --- 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> |