toolbar: add toolbar only on html content
This commit is contained in:
parent
98ff54f07e
commit
69d1dc3ead
|
@ -19,7 +19,12 @@ if config.mandaye_toolbar:
|
|||
mapping.extend([
|
||||
{
|
||||
'path': r'/',
|
||||
'on_response': [{'filter': MandayeFilter.addtoolbar,},]
|
||||
'on_response': [
|
||||
{
|
||||
'filter': MandayeFilter.addtoolbar,
|
||||
'content-types': ['text/html'],
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'path': r'/mandaye/toolbar',
|
||||
|
|
Reference in New Issue