little enhancement of oscar template

* improve site-titles
* add message which tell you if no data is availabe yet
This commit is contained in:
Thomas Pointhuber 2014-09-26 18:26:46 +02:00
parent c21a907cac
commit a88ce4bd33
3 changed files with 11 additions and 0 deletions

View file

@ -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>

View file

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

View file

@ -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 %}