Revert: [enh] add new bootstrap-themes to oscar-template

This commit is contained in:
Thomas Pointhuber 2015-01-18 13:54:24 +01:00
parent 7366a0e141
commit 1f00ce8527
17 changed files with 2 additions and 3548 deletions

View file

@ -10,11 +10,7 @@
{% block meta %}{% endblock %}
<title>{% block title %}{% endblock %}searx</title>
{% 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/bootstrap.min.css') }}" type="text/css" />
<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" />

View file

@ -14,7 +14,6 @@
<!-- 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>
@ -102,28 +101,6 @@
</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 -->