mirror of https://github.com/searxng/searxng
oscar template: implement search input, index page,...
parent
ef1ead9c4b
commit
a538bed745
Binary file not shown.
Before Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
@ -1,6 +1,15 @@
|
||||
{% extends "oscar/base.html" %}
|
||||
{% block content %}
|
||||
<div class="center">
|
||||
<div class="title"><h1>searx</h1></div>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="text-center col-sm-12 col-md-12">
|
||||
<h1 class="text-hide center-block"><img class="center-block img-responsive" src="{{ url_for('static', filename='img/searx_logo.png') }}" alt="searx logo"/>searx</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="text-center col-sm-12 col-md-12">
|
||||
{% include 'oscar/search.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -0,0 +1,3 @@
|
||||
{% macro icon(action) -%}
|
||||
<span class="glyphicon glyphicon-{{ action }}"></span>
|
||||
{%- endmacro %}
|
@ -0,0 +1,17 @@
|
||||
{% from 'oscar/macros.html' import icon %}
|
||||
|
||||
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" id="search_form" role="search">
|
||||
<div class="input-group col-md-8 col-md-offset-2">
|
||||
<input type="search" name="q" class="form-control input-lg" id="q" placeholder="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-default input-lg">{{ icon('search') }}<span class="sr-only">{{ _('Start search') }}</span></button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<button type="button" class="btn btn-link btn-collapse center-block collapsed" data-toggle="collapse" data-target="#search_categories" data-btn-text-collapsed="{{ _('Show search filters') }}" data-btn-text-not-collapsed="{{ _('Hide search filters') }}">{{ _('Show search filters') }}</button>
|
||||
<div class="row collapse" id="search_categories">
|
||||
<div class="col-md-12 text-center">
|
||||
{% include 'oscar/categories.html' %}
|
||||
</div>
|
||||
</div><!-- / #search_categories -->
|
||||
</form><!-- / #search_form_full -->
|
Loading…
Reference in New Issue