commit: a88ce4bd336e470900d138dcc19af7efaad40573
parent c21a907cacbbfa8ce8a135362067086063a805f6
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Fri, 26 Sep 2014 18:26:46 +0200
little enhancement of oscar template
* improve site-titles
* add message which tell you if no data is availabe yet
Diffstat:
3 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/searx/templates/oscar/about.html b/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>
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
@@ -1,4 +1,5 @@
{% extends "oscar/base.html" %}
+{% block title %}{{ _('preferences') }} - {% endblock %}
{% block content %}
<div>
diff --git a/searx/templates/oscar/stats.html b/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 %}