def get_navigation_items(self, req): if 'REPORT_VIEW' in req.perm: href = ProductModule.get_product_path(self.env, req, 'report') yield ('mainnav', 'tickets', tag.a(_('View Tickets'), href=href))
def get_navigation_items(self, req): """Overriding TicketModules New Ticket nav item""" if 'TICKET_CREATE' in req.perm: href = ProductModule.get_product_path(self.env, req, 'newticket') yield ('mainnav', 'newticket', tag.a(_("New Ticket"), href=href, accesskey=7))
def get_navigation_items(self, req): if "REPORT_VIEW" in req.perm: href = ProductModule.get_product_path(self.env, req, "report") yield ("mainnav", "tickets", tag.a(_("View Tickets"), href=href))