mirror of
https://github.com/searxng/searxng.git
synced 2024-11-27 13:21:04 +00:00
oscar template: add directory in which are messages stored
This commit is contained in:
parent
25919de608
commit
ef1ead9c4b
4 changed files with 25 additions and 4 deletions
|
@ -41,12 +41,13 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block site_alert_warning_nojs %}
|
{% block site_alert_warning_nojs %}
|
||||||
<noscript>
|
<noscript>
|
||||||
<div class="alert alert-warning" role="alert">
|
{% include 'oscar/messages/js_disabled.html' %}
|
||||||
<strong>{{ _('Warning!') }}</strong>
|
|
||||||
{{ _('Please enable JavaScript to use full functionality of this site.') }}
|
|
||||||
</div>
|
|
||||||
</noscript>
|
</noscript>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block site_alert_info %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block site_alert_success %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
4
searx/templates/oscar/messages/js_disabled.html
Normal file
4
searx/templates/oscar/messages/js_disabled.html
Normal file
|
@ -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>
|
|
@ -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>
|
8
searx/templates/oscar/messages/unknow_error.html
Normal file
8
searx/templates/oscar/messages/unknow_error.html
Normal file
|
@ -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>
|
Loading…
Reference in a new issue