little enhancement of oscar template
* improve site-titles * add message which tell you if no data is availabe yet
This commit is contained in:
		
							parent
							
								
									c21a907cac
								
							
						
					
					
						commit
						a88ce4bd33
					
				| @ -1,5 +1,6 @@ | |||||||
| {% extends "oscar/base.html" %} | {% extends "oscar/base.html" %} | ||||||
| {% block site_alert_warning_nojs %} {% endblock %} | {% block site_alert_warning_nojs %} {% endblock %} | ||||||
|  | {% block title %}{{ _('about') }} - {% endblock %} | ||||||
| {% block content %} | {% block content %} | ||||||
| <div> | <div> | ||||||
|     <h1>About <a href="{{ url_for('index') }}">searx</a></h1> |     <h1>About <a href="{{ url_for('index') }}">searx</a></h1> | ||||||
|  | |||||||
| @ -1,4 +1,5 @@ | |||||||
| {% extends "oscar/base.html" %} | {% extends "oscar/base.html" %} | ||||||
|  | {% block title %}{{ _('preferences') }} - {% endblock %} | ||||||
| {% block content %} | {% block content %} | ||||||
| <div> | <div> | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,4 +1,5 @@ | |||||||
| {% extends "oscar/base.html" %} | {% extends "oscar/base.html" %} | ||||||
|  | {% block title %}{{ _('stats') }} - {% endblock %} | ||||||
| {% block content %} | {% block content %} | ||||||
| <div class="container-fluid"> | <div class="container-fluid"> | ||||||
|     <h1>{{ _('Engine stats') }}</h1> |     <h1>{{ _('Engine stats') }}</h1> | ||||||
| @ -19,6 +20,14 @@ | |||||||
|                     </div> |                     </div> | ||||||
|                 </div> |                 </div> | ||||||
|                 {% endfor %} |                 {% 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> | ||||||
|         </div> |         </div> | ||||||
|         {% endfor %} |         {% endfor %} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user