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

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

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

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

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

@@ -1,4 +1,5 @@
 {% extends "oscar/base.html" %}
+{% block title %}{{ _('stats') }} - {% endblock %}
 {% block content %}
 <div class="container-fluid">
     <h1>{{ _('Engine stats') }}</h1>
@@ -19,6 +20,14 @@
                     </div>
                 </div>
                 {% endfor %}
+                {% if not stat_category %}
+                <div class="col-sm-12 col-md-12">
+                    <div class="alert alert-info" role="alert">
+                        <strong>{{ _('Heads up!') }}</strong>
+                        {{ _('There is currently no data available.') }}
+                    </div>
+                </div>
+                {% endif %}
             </div>
         </div>
         {% endfor %}