Add config for "global" help URL
This commit is contained in:
parent
cfa9c95814
commit
9620fc5a83
3 changed files with 13 additions and 1 deletions
|
@ -58,6 +58,7 @@ from webhelpers2.html import HTML, tags
|
|||
|
||||
from tailbone import forms, grids, diffs
|
||||
from tailbone.views import View
|
||||
from tailbone.config import global_help_url
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -2318,7 +2319,10 @@ class MasterView(View):
|
|||
so if you like you can return a different help URL depending on which
|
||||
type of CRUD view is in effect, etc.
|
||||
"""
|
||||
return self.help_url
|
||||
if self.help_url:
|
||||
return self.help_url
|
||||
|
||||
return global_help_url(self.rattail_config)
|
||||
|
||||
def render_to_response(self, template, data, mobile=False):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue