'Breadcrumbs from the current options menu'

@classmethod
def breadcrumbs(cls):

    layout = S3BreadcrumbsLayout
    request = current.request
    controller = request.controller
    function = request.function
    all_modules = current.deployment_settings.modules
    breadcrumbs = layout()(layout(all_modules['default'].name_nice))
    if (controller != 'default'):
        try:
            breadcrumbs(layout(all_modules[controller].name_nice, c=controller))
        except:
            pass
    menu = current.menu.options
    if (menu and (function != 'index')):
        branch = menu.branch()
        if branch:
            path = branch.path()
            if (len(path) > 1):
                for item in path[1:]:
                    breadcrumbs(layout(item.label, c=item.get('controller'), f=item.get('function'), args=item.args, vars=item.vars))
    return breadcrumbs
