Browse Source

Printview improved - URL and view

master
Dirk Alders 4 years ago
parent
commit
8dc3831099
2 changed files with 3 additions and 1 deletions
  1. 2
    1
      __init__.py
  2. 1
    0
      templates/patt/tasklist_print.html

+ 2
- 1
__init__.py View File

80
 
80
 
81
 def url_printview(request):
81
 def url_printview(request):
82
     if not is_printview(request):
82
     if not is_printview(request):
83
-        return '?printview'
83
+        search_query = get_search_query(request)
84
+        return '?printview' + ('&q=%s' % search_query) if search_query is not None else ''
84
     else:
85
     else:
85
         return request.path
86
         return request.path
86
 
87
 

+ 1
- 0
templates/patt/tasklist_print.html View File

7
 
7
 
8
 
8
 
9
     <style>
9
     <style>
10
+{% include 'themes/'|add:settings.page_theme|add:'/base.css' %}
10
 {% include 'patt/patt.css' %}
11
 {% include 'patt/patt.css' %}
11
     </style>
12
     </style>
12
 
13
 

Loading…
Cancel
Save