on master help sign in
oscar template: update messages
9158571Thomas Pointhuber
searx/templates/oscar/messages/first_time.htmlnew file+8
@@ -0,0 +1,8 @@
1+<div class="alert alert-info fade in" role="alert">
2+ <button class="close" data-dismiss="alert" type="button">
3+ <span aria-hidden="true">×</span>
4+ <span class="sr-only">Close</span>
5+ </button>
6+ <strong class="lead">{{ icon('info-sign') }} {{ _('Heads up!') }}</strong>
7+ {{ _('It look like you are using searx first time.') }}
8+</div>
searx/templates/oscar/messages/js_disabled.html+1−1
@@ -1,4 +1,4 @@
1<div class="alert alert-warning" role="alert">
1<div class="alert alert-warning" role="alert">
2− <strong>{{ _('Warning!') }}</strong>
2+ <strong class="lead">{{ _('Warning!') }}</strong>
3 {{ _('Please enable JavaScript to use full functionality of this site.') }}
3 {{ _('Please enable JavaScript to use full functionality of this site.') }}
4</div>
4</div>
searx/templates/oscar/messages/no_data_available.htmlnew file+5
@@ -0,0 +1,5 @@
1+{% from 'oscar/macros.html' import icon %}
2+<div class="alert alert-info fade in" role="alert">
3+ <strong class="lead">{{ icon('info-sign') }} {{ _('Heads up!') }}</strong>
4+ {{ _('There is currently no data available. ') }}
5+</div>
searx/templates/oscar/messages/save_settings_successfull.html+2−1
@@ -1,8 +1,9 @@
1+{% from 'oscar/macros.html' import icon %}
1<div class="alert alert-success fade in" role="alert">
2<div class="alert alert-success fade in" role="alert">
2 <button class="close" data-dismiss="alert" type="button">
3 <button class="close" data-dismiss="alert" type="button">
3 <span aria-hidden="true">×</span>
4 <span aria-hidden="true">×</span>
4 <span class="sr-only">Close</span>
5 <span class="sr-only">Close</span>
5 </button>
6 </button>
6− <strong>{{ _('Well done!') }}</strong>
7+ <strong class="lead">{{ icon('ok-sign') }} {{ _('Well done!') }}</strong>
7 {{ _('Settings saved successfully.') }}
8 {{ _('Settings saved successfully.') }}
8</div>
9</div>
searx/templates/oscar/messages/unknow_error.html+2−1
@@ -1,8 +1,9 @@
1+{% from 'oscar/macros.html' import icon %}
1<div class="alert alert-danger fade in" role="alert">
2<div class="alert alert-danger fade in" role="alert">
2 <button class="close" data-dismiss="alert" type="button">
3 <button class="close" data-dismiss="alert" type="button">
3 <span aria-hidden="true">×</span>
4 <span aria-hidden="true">×</span>
4 <span class="sr-only">Close</span>
5 <span class="sr-only">Close</span>
5 </button>
6 </button>
6− <strong>{{ _('Oh snap!') }}</strong>
7+ <strong class="lead">{{ icon('exclamation-sign') }} {{ _('Oh snap!') }}</strong>
7 {{ _('Something went wrong.') }}
8 {{ _('Something went wrong.') }}
8</div>
9</div>
searx/templates/oscar/stats.html+1−3
@@ -22,9 +22,7 @@
22 {% endfor %}
22 {% endfor %}
23 {% if not stat_category %}
23 {% if not stat_category %}
24 <div class="col-sm-12 col-md-12">
24 <div class="col-sm-12 col-md-12">
25− <div class="alert alert-info" role="alert">
25+ {% include 'oscar/messages/no_data_available.html' %}
26− {{ _('There is currently no data available.') }}
27− </div>
28 </div>
26 </div>
29 {% endif %}
27 {% endif %}
30 </div>
28 </div>