Selaa lähdekoodia

oscar template: update messages

Thomas Pointhuber 10 vuotta sitten
vanhempi
commit
9158571059

+ 8
- 0
searx/templates/oscar/messages/first_time.html Näytä tiedosto

@@ -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>

+ 1
- 1
searx/templates/oscar/messages/js_disabled.html Näytä tiedosto

@@ -1,4 +1,4 @@
1 1
 <div class="alert alert-warning" role="alert">
2
-    <strong>{{ _('Warning!') }}</strong>
2
+    <strong class="lead">{{ _('Warning!') }}</strong>
3 3
     {{ _('Please enable JavaScript to use full functionality of this site.') }}
4 4
 </div>

+ 5
- 0
searx/templates/oscar/messages/no_data_available.html Näytä tiedosto

@@ -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>

+ 2
- 1
searx/templates/oscar/messages/save_settings_successfull.html Näytä tiedosto

@@ -1,8 +1,9 @@
1
+{% from 'oscar/macros.html' import icon %}
1 2
 <div class="alert alert-success fade in" role="alert">
2 3
     <button class="close" data-dismiss="alert" type="button">
3 4
         <span aria-hidden="true">×</span>
4 5
         <span class="sr-only">Close</span>
5 6
     </button>
6
-    <strong>{{ _('Well done!') }}</strong>
7
+    <strong class="lead">{{ icon('ok-sign') }} {{ _('Well done!') }}</strong>
7 8
     {{ _('Settings saved successfully.') }}
8 9
 </div>

+ 2
- 1
searx/templates/oscar/messages/unknow_error.html Näytä tiedosto

@@ -1,8 +1,9 @@
1
+{% from 'oscar/macros.html' import icon %}
1 2
 <div class="alert alert-danger fade in" role="alert">
2 3
     <button class="close" data-dismiss="alert" type="button">
3 4
         <span aria-hidden="true">×</span>
4 5
         <span class="sr-only">Close</span>
5 6
     </button>
6
-    <strong>{{ _('Oh snap!') }}</strong>
7
+    <strong class="lead">{{ icon('exclamation-sign') }} {{ _('Oh snap!') }}</strong>
7 8
     {{ _('Something went wrong.') }}
8 9
 </div>

+ 1
- 3
searx/templates/oscar/stats.html Näytä tiedosto

@@ -22,9 +22,7 @@
22 22
                 {% endfor %}
23 23
                 {% if not stat_category %}
24 24
                 <div class="col-sm-12 col-md-12">
25
-                    <div class="alert alert-info" role="alert">
26
-                        {{ _('There is currently no data available.') }}
27
-                    </div>
25
+                    {% include 'oscar/messages/no_data_available.html' %}
28 26
                 </div>
29 27
                 {% endif %}
30 28
             </div>