소스 검색

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