on master help sign in
little enhancement of oscar template

* improve site-titles * add message which tell you if no data is availabe yet

commita88ce4bd336e470900d138dcc19af7efaad40573 authorThomas Pointhuber <thomas.pointhuber@gmx.at> dateFri 26 Sep 2014, 18:26 (12 years ago) parentc21a907
3 files changed+11
searx/templates/oscar/about.html+1 searx/templates/oscar/preferences.html+1 searx/templates/oscar/stats.html+9
searx/templates/oscar/about.html+1
@@ -1,5 +1,6 @@
11{% extends "oscar/base.html" %}
22{% block site_alert_warning_nojs %} {% endblock %}
3+{% block title %}{{ _('about') }} - {% endblock %}
34{% block content %}
45<div>
56 <h1>About <a href="{{ url_for('index') }}">searx</a></h1>
searx/templates/oscar/preferences.html+1
@@ -1,4 +1,5 @@
11{% extends "oscar/base.html" %}
2+{% block title %}{{ _('preferences') }} - {% endblock %}
23{% block content %}
34<div>
45
searx/templates/oscar/stats.html+9
@@ -1,4 +1,5 @@
11{% extends "oscar/base.html" %}
2+{% block title %}{{ _('stats') }} - {% endblock %}
23{% block content %}
34<div class="container-fluid">
45 <h1>{{ _('Engine stats') }}</h1>
@@ -19,6 +20,14 @@
1920 </div>
2021 </div>
2122 {% 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 %}
2231 </div>
2332 </div>
2433 {% endfor %}