def commit_link(request, path_obj): if path_obj.abs_real_path and check_permission('commit', request) and versioncontrol.hasversioning(path_obj.abs_real_path): link = dispatch.commit(request, path_obj) text = _('Commit to VCS') return { 'href': link, 'text': text, 'link': link, }
def commit_to_vcs(request, path_obj, **kwargs): if (path_obj.abs_real_path and check_permission('commit', request) and hasversioning(path_obj.abs_real_path)): link = dispatch.commit(path_obj) text = _('Commit to VCS') return { 'icon': 'icon-vcs-commit', 'href': link, 'text': text, }
def commit_link(request, path_obj): if path_obj.abs_real_path and check_permission( 'commit', request) and versioncontrol.hasversioning( path_obj.abs_real_path): link = dispatch.commit(request, path_obj) text = _('Commit to VCS') return { 'href': link, 'text': text, 'link': link, }