Add html for if search route is enabled

This commit is contained in:
scoobybejesus 2021-09-09 20:29:17 -04:00 committed by GitHub
parent 628279f78a
commit a7ca6449a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,12 +41,12 @@
<a href="/history.txt">history.txt</a> <a href="/history.txt">history.txt</a>
</div> </div>
<div class="col-md-3"> <div class="col-md-5">
<h4>Library <h4>Library
<small style="font-size:12px">(by user)</small> <small style="font-size:12px">(by user)</small>
</h4> </h4>
<form method="GET" action="/library"> <form method="GET" action="/library">
<div class="input-group mb-3"> <div class="input-group mb-3 style=no-gutters">
<input type="text" class="form-control" id="name" name="name" placeholder="username..."> <input type="text" class="form-control" id="name" name="name" placeholder="username...">
<div class="input-group-append"> <div class="input-group-append">
<input class="btn btn-outline-secondary" type="submit" value="Search"> <input class="btn btn-outline-secondary" type="submit" value="Search">
@ -55,8 +55,28 @@
</form> </form>
</div> </div>
<div class="col-md-3"></div>
</div> </div>
{% if ENABLE_SEARCH_ROUTE %}
<hr>
<div class="row">
<div class="col-md-8">
<h4>Quick Search
<small style="font-size:12px">(general)</small>
</h4>
<div class="input-group mb-3">
<input type="text" class="form-control" id="general" name="general" placeholder="query...">
</div>
</div>
<div class="col-md-12">
<table class="table table-sm table-hover table-bordered" id="table" style="font-size:12px">
<thead>
<tbody style="">
</tbody>
</thead>
</table>
</div>
</div>
{% endif %}
<hr> <hr>
<h4>IRC</h4> <h4>IRC</h4>
<pre>{{ settings.irc_host }}:{{ settings.irc_port }} <pre>{{ settings.irc_host }}:{{ settings.irc_port }}
@ -65,4 +85,7 @@
</div> </div>
</div> </div>
</div> </div>
<script src="static/search.js"></script>
{% endblock %} {% endblock %}