toolbar: add toolbar only on html content

This commit is contained in:
Jérôme Schneider 2014-12-09 17:06:51 +01:00
parent 98ff54f07e
commit 69d1dc3ead
1 changed files with 6 additions and 1 deletions

View File

@ -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',