commit: ef1ead9c4bfb6a68cc6c0f8727c4af8d99206eb8
parent 25919de6084599c3196622ed1c89648b2c11f78a
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Fri, 26 Sep 2014 23:29:14 +0200
oscar template: add directory in which are messages stored
Diffstat:
4 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
@@ -41,12 +41,13 @@
{% endblock %}
{% block site_alert_warning_nojs %}
<noscript>
- <div class="alert alert-warning" role="alert">
- <strong>{{ _('Warning!') }}</strong>
- {{ _('Please enable JavaScript to use full functionality of this site.') }}
- </div>
+ {% include 'oscar/messages/js_disabled.html' %}
</noscript>
{% endblock %}
+ {% block site_alert_info %}
+ {% endblock %}
+ {% block site_alert_success %}
+ {% endblock %}
{% block content %}
{% endblock %}
diff --git a/searx/templates/oscar/messages/js_disabled.html b/searx/templates/oscar/messages/js_disabled.html
@@ -0,0 +1,4 @@
+<div class="alert alert-warning" role="alert">
+ <strong>{{ _('Warning!') }}</strong>
+ {{ _('Please enable JavaScript to use full functionality of this site.') }}
+</div>
diff --git a/searx/templates/oscar/messages/save_settings_successfull.html b/searx/templates/oscar/messages/save_settings_successfull.html
@@ -0,0 +1,8 @@
+<div class="alert alert-success fade in" role="alert">
+ <button class="close" data-dismiss="alert" type="button">
+ <span aria-hidden="true">×</span>
+ <span class="sr-only">Close</span>
+ </button>
+ <strong>{{ _('Well done!') }}</strong>
+ {{ _('Settings saved successfully.') }}
+</div>
diff --git a/searx/templates/oscar/messages/unknow_error.html b/searx/templates/oscar/messages/unknow_error.html
@@ -0,0 +1,8 @@
+<div class="alert alert-danger fade in" role="alert">
+ <button class="close" data-dismiss="alert" type="button">
+ <span aria-hidden="true">×</span>
+ <span class="sr-only">Close</span>
+ </button>
+ <strong>{{ _('Oh snap!') }}</strong>
+ {{ _('Something went wrong.') }}
+</div>