on master help sign in
little enhancement of oscar template
a88ce4bThomas Pointhuber
searx/templates/oscar/about.html+1
@@ -1,5 +1,6 @@
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>
searx/templates/oscar/preferences.html+1
@@ -1,4 +1,5 @@
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
searx/templates/oscar/stats.html+9
@@ -1,4 +1,5 @@
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,6 +20,14 @@
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 %}