admin: reduce number of breadcrumbs in workflows admin (#486)
This commit is contained in:
parent
af78aecfac
commit
9ca1b0c05f
|
@ -205,7 +205,7 @@ class WorkflowItemPage(Directory):
|
|||
raise errors.TraversalError()
|
||||
self.workflow = workflow
|
||||
self.status = status
|
||||
get_response().breadcrumb.append((component + '/', self.item.description))
|
||||
get_response().breadcrumb.append(('items/%s/' % component, self.item.description))
|
||||
|
||||
def _q_index [html] (self):
|
||||
request = get_request()
|
||||
|
@ -264,7 +264,6 @@ class WorkflowItemsDir(Directory):
|
|||
self.status = status
|
||||
|
||||
def _q_lookup(self, component):
|
||||
get_response().breadcrumb.append(('items/', _('Items')))
|
||||
return WorkflowItemPage(self.workflow, self.status, component)
|
||||
|
||||
def _q_index(self):
|
||||
|
@ -283,7 +282,7 @@ class WorkflowStatusPage(Directory):
|
|||
raise errors.TraversalError()
|
||||
|
||||
self.items_dir = WorkflowItemsDir(workflow, self.status)
|
||||
get_response().breadcrumb.append((status_id + '/', self.status.name))
|
||||
get_response().breadcrumb.append(('status/%s/' % status_id, _('Status: %s') % self.status.name))
|
||||
|
||||
def _q_index [html] (self):
|
||||
html_top('workflows', '%s - %s' % (_('Workflow'), self.workflow.name))
|
||||
|
@ -576,7 +575,6 @@ class WorkflowStatusDirectory(Directory):
|
|||
self.workflow = workflow
|
||||
|
||||
def _q_lookup(self, component):
|
||||
get_response().breadcrumb.append(('status/', _('Status')))
|
||||
return WorkflowStatusPage(self.workflow, component)
|
||||
|
||||
def _q_index(self):
|
||||
|
|
Loading…
Reference in New Issue