

def get_instance_link(index_instance_node, text=None, simple=False):
    '\n    Return an HTML anchor to an index instance\n    '
    if simple:
        template = '%(value)s'
    else:
        template = '<a href="%(url)s">%(value)s</a>'
    return (text % {
        'url': index_instance_node.get_absolute_url(),
        'value': (text if text else (index_instance_node if index_instance_node.parent else index_instance_node.index_template_node.index)),
    })

dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/document_indexing/widgets.py get_instance_link/VarMisuse@41/89 `template`->`text`