瀏覽代碼

little enhancement of oscar template

* improve site-titles
* add message which tell you if no data is availabe yet
Thomas Pointhuber 10 年之前
父節點
當前提交
a88ce4bd33
共有 3 個檔案被更改,包括 11 行新增0 行删除
  1. 1
    0
      searx/templates/oscar/about.html
  2. 1
    0
      searx/templates/oscar/preferences.html
  3. 9
    0
      searx/templates/oscar/stats.html

+ 1
- 0
searx/templates/oscar/about.html 查看文件

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

+ 1
- 0
searx/templates/oscar/preferences.html 查看文件

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

+ 9
- 0
searx/templates/oscar/stats.html 查看文件

@@ -1,4 +1,5 @@
1 1
 {% extends "oscar/base.html" %}
2
+{% block title %}{{ _('stats') }} - {% endblock %}
2 3
 {% block content %}
3 4
 <div class="container-fluid">
4 5
     <h1>{{ _('Engine stats') }}</h1>
@@ -19,6 +20,14 @@
19 20
                     </div>
20 21
                 </div>
21 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 31
             </div>
23 32
         </div>
24 33
         {% endfor %}