Add support for the new_window link tag that open selected links into new browser window/tab.

This commit is contained in:
Roberto Rosario
2015-08-23 22:07:48 -04:00
parent ec47bdd7c6
commit 307941ef64
4 changed files with 14 additions and 5 deletions

View File

@@ -4,8 +4,11 @@ from django.utils.translation import ugettext_lazy as _
from navigation import Link
link_api = Link(icon='fa fa-plug', text=_('REST API'), view='rest_api:api-root')
link_api = Link(
icon='fa fa-plug', tags='new_window', text=_('REST API'),
view='rest_api:api-root'
)
link_api_documentation = Link(
icon='fa fa-book', text=_('API Documentation'),
icon='fa fa-book', tags='new_window', text=_('API Documentation'),
view='django.swagger.base.view'
)