Skip to content

Commit

Permalink
set query params to fixed search section
Browse files Browse the repository at this point in the history
  • Loading branch information
imankarimi committed Jul 31, 2023
1 parent c190786 commit e37fbd0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
## Why Django Log Reader?

- Reading files based on Linux commands speeds up the display of file content
- Search in files based on Linux commands
- Download the result of the content
- Display all files according to the pattern defined in the `settings.py`
- Simple interface
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Why Django Log Reader?
=========================

* Reading files based on Linux commands speeds up the display of file content
* Search in files based on Linux commands
* Download the result of the content
* Display all files according to the pattern defined in the ``settings.py``
* Simple interface
Expand Down
2 changes: 1 addition & 1 deletion log_reader/static/log_reader/css/log_reader.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
color: #ffffff;
cursor: pointer;
border: 1px solid #d0d0d0;
position: fixed;
position: absolute;
right: 315px;
top: 156px;
}
5 changes: 4 additions & 1 deletion log_reader/templates/log_reader/admin/change_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ <h1>File Logs</h1>
{% if django_version >= '3' %}<div class="changelist-form-container">{% endif %}

<div id="toolbar">
<form id="changelist-search" method="get">
<form id="changelist-search" action="{{ request.get_full_path }}" method="get">
<div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search"></label>
<input type="text" size="40" name="q" value="{{ request.GET.q }}" id="searchbar" autofocus="">
{% if request.GET.file_name %}
<input type="hidden" name="file_name" value="{{ request.GET.file_name }}">
{% endif %}
<input type="submit" value="Search">
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-log-reader',
version='1.1.8',
version='1.1.9',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit e37fbd0

Please sign in to comment.