mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 02:22:22 +02:00
[enh] add new bootstrap-themes to oscar-template
This commit is contained in:
parent
285f991cd0
commit
096ffd0659
17 changed files with 3548 additions and 2 deletions
|
@ -10,7 +10,11 @@
|
|||
{% block meta %}{% endblock %}
|
||||
<title>{% block title %}{% endblock %}searx</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
|
||||
{% if bootstrap_theme == 'default' %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.' + bootstrap_theme + '.min.css') }}" type="text/css" />
|
||||
{% endif %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/oscar.min.css') }}" type="text/css" />
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.min.css') }}" type="text/css" />
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs hide_if_nojs" role="tablist" style="margin-bottom:20px;">
|
||||
<li class="active"><a href="#tab_general" role="tab" data-toggle="tab">{{ _('General') }}</a></li>
|
||||
<li><a href="#tab_template" role="tab" data-toggle="tab">{{ _('Template features') }}</a></li>
|
||||
<li><a href="#tab_engine" role="tab" data-toggle="tab">{{ _('Engines') }}</a></li>
|
||||
</ul>
|
||||
|
||||
|
@ -96,6 +97,28 @@
|
|||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane active_if_nojs" id="tab_template">
|
||||
<noscript>
|
||||
<h3>{{ _('Template features') }}</h3>
|
||||
</noscript>
|
||||
|
||||
<fieldset>
|
||||
<div class="container-fluid">
|
||||
<div class="row form-group">
|
||||
<label class="col-sm-3 col-md-2">{{ _('bootstrap theme') }}</label>
|
||||
<div class="col-sm-4 col-md-4">
|
||||
<select class="form-control" name='bootstrap_theme'>
|
||||
{% for b_theme in bootstrap_themes %}
|
||||
<option value="{{ b_theme }}" {% if bootstrap_theme == b_theme %}selected="selected"{% endif %}>{{ b_theme }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<span class="col-sm-5 col-md-6 help-block">{{ _('Change style of this layout') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="tab-pane active_if_nojs" id="tab_engine">
|
||||
|
||||
<!-- Nav tabs -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue