Skip to content

Commit c190786

Browse files
committed
bug fix to show search bar after nothings found
1 parent df04efd commit c190786

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

log_reader/templates/log_reader/admin/change_list.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ <h1>File Logs</h1>
2626
{% block content %}
2727
<div id="content-main">
2828
<div class="module filtered" id="changelist">
29-
{% if django_version >= '3' %}
30-
<div class="changelist-form-container">{% endif %}
31-
{% if file_contents %}
32-
<div id="toolbar">
33-
<form id="changelist-search" method="get">
34-
<div><!-- DIV needed for valid HTML -->
35-
<label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search"></label>
36-
<input type="text" size="40" name="q" value="{{ request.GET.q }}" id="searchbar" autofocus="">
37-
<input type="submit" value="Search">
38-
</div>
39-
</form>
29+
{% if django_version >= '3' %}<div class="changelist-form-container">{% endif %}
30+
31+
<div id="toolbar">
32+
<form id="changelist-search" method="get">
33+
<div><!-- DIV needed for valid HTML -->
34+
<label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search"></label>
35+
<input type="text" size="40" name="q" value="{{ request.GET.q }}" id="searchbar" autofocus="">
36+
<input type="submit" value="Search">
37+
</div>
38+
</form>
39+
{% if file_contents %}
4040
<button id="DownloadLogFile" type="submit">Download</button>
41-
</div>
42-
{% endif %}
41+
{% endif %}
42+
</div>
4343

4444
{% if file_contents %}
4545
<form id="changelist-form" method="post" novalidate=""{% if django_version < '3' %} style="width: auto;margin-right: 280px;" {% endif %}>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='django-log-reader',
12-
version='1.1.7',
12+
version='1.1.8',
1313
zip_safe=False,
1414
packages=find_packages(),
1515
include_package_data=True,

0 commit comments

Comments
 (0)