File tree Expand file tree Collapse file tree 5 files changed +8
-3
lines changed
templates/log_reader/admin Expand file tree Collapse file tree 5 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 8
8
## Why Django Log Reader?
9
9
10
10
- Reading files based on Linux commands speeds up the display of file content
11
+ - Search in files based on Linux commands
11
12
- Download the result of the content
12
13
- Display all files according to the pattern defined in the ` settings.py `
13
14
- Simple interface
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Why Django Log Reader?
11
11
=========================
12
12
13
13
* Reading files based on Linux commands speeds up the display of file content
14
+ * Search in files based on Linux commands
14
15
* Download the result of the content
15
16
* Display all files according to the pattern defined in the ``settings.py ``
16
17
* Simple interface
Original file line number Diff line number Diff line change 5
5
color : # ffffff ;
6
6
cursor : pointer;
7
7
border : 1px solid # d0d0d0 ;
8
- position : fixed ;
8
+ position : absolute ;
9
9
right : 315px ;
10
10
top : 156px ;
11
11
}
Original file line number Diff line number Diff line change @@ -29,10 +29,13 @@ <h1>File Logs</h1>
29
29
{% if django_version > = '3' %}< div class ="changelist-form-container "> {% endif %}
30
30
31
31
< div id ="toolbar ">
32
- < form id ="changelist-search " method ="get ">
32
+ < form id ="changelist-search " action =" {{ request.get_full_path }} " method ="get ">
33
33
< div > <!-- DIV needed for valid HTML -->
34
34
< label for ="searchbar "> < img src ="{% static "admin /img/search.svg" %}" alt="Search "> </ label >
35
35
< input type ="text " size ="40 " name ="q " value ="{{ request.GET.q }} " id ="searchbar " autofocus ="">
36
+ {% if request.GET.file_name %}
37
+ < input type ="hidden " name ="file_name " value ="{{ request.GET.file_name }} ">
38
+ {% endif %}
36
39
< input type ="submit " value ="Search ">
37
40
</ div >
38
41
</ form >
Original file line number Diff line number Diff line change 9
9
10
10
setup (
11
11
name = 'django-log-reader' ,
12
- version = '1.1.8 ' ,
12
+ version = '1.1.9 ' ,
13
13
zip_safe = False ,
14
14
packages = find_packages (),
15
15
include_package_data = True ,
You can’t perform that action at this time.
0 commit comments