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,7 +80,8 @@ def url_filteredit(request, search_id=None):
80 80
 
81 81
 def url_printview(request):
82 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 85
     else:
85 86
         return request.path
86 87
 

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

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

Loading…
Cancel
Save