Browse Source

little enhancement of oscar template

* improve site-titles
* add message which tell you if no data is availabe yet
Thomas Pointhuber 10 years ago
parent
commit
a88ce4bd33

+ 1
- 0
searx/templates/oscar/about.html View File

1
 {% extends "oscar/base.html" %}
1
 {% extends "oscar/base.html" %}
2
 {% block site_alert_warning_nojs %} {% endblock %}
2
 {% block site_alert_warning_nojs %} {% endblock %}
3
+{% block title %}{{ _('about') }} - {% endblock %}
3
 {% block content %}
4
 {% block content %}
4
 <div>
5
 <div>
5
     <h1>About <a href="{{ url_for('index') }}">searx</a></h1>
6
     <h1>About <a href="{{ url_for('index') }}">searx</a></h1>

+ 1
- 0
searx/templates/oscar/preferences.html View File

1
 {% extends "oscar/base.html" %}
1
 {% extends "oscar/base.html" %}
2
+{% block title %}{{ _('preferences') }} - {% endblock %}
2
 {% block content %}
3
 {% block content %}
3
 <div>
4
 <div>
4
 
5
 

+ 9
- 0
searx/templates/oscar/stats.html View File

1
 {% extends "oscar/base.html" %}
1
 {% extends "oscar/base.html" %}
2
+{% block title %}{{ _('stats') }} - {% endblock %}
2
 {% block content %}
3
 {% block content %}
3
 <div class="container-fluid">
4
 <div class="container-fluid">
4
     <h1>{{ _('Engine stats') }}</h1>
5
     <h1>{{ _('Engine stats') }}</h1>
19
                     </div>
20
                     </div>
20
                 </div>
21
                 </div>
21
                 {% endfor %}
22
                 {% endfor %}
23
+                {% if not stat_category %}
24
+                <div class="col-sm-12 col-md-12">
25
+                    <div class="alert alert-info" role="alert">
26
+                        <strong>{{ _('Heads up!') }}</strong>
27
+                        {{ _('There is currently no data available.') }}
28
+                    </div>
29
+                </div>
30
+                {% endif %}
22
             </div>
31
             </div>
23
         </div>
32
         </div>
24
         {% endfor %}
33
         {% endfor %}