${_('Remote Sync')}

${_('Manually pull/push changes from/to external URLs.')}

% if c.rhodecode_db_repo.clone_uri: % endif
${_('Pull url')}
% if c.rhodecode_db_repo.clone_uri: ${c.rhodecode_db_repo.clone_uri_hidden} % else: ${_('This repository does not have any pull url set.')} ${_('Set remote url.')} % endif

${_('Pull can be automated by such api call. Can be called periodically in crontab etc.')}
${h.api_call_example(method='pull', args={"repoid": c.rhodecode_db_repo.repo_name})}

${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)}
${h.submit('remote_pull_%s' % c.rhodecode_db_repo.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")}
${h.end_form()}
${_('Push url')}
% if c.rhodecode_db_repo.push_uri: ${c.rhodecode_db_repo.push_uri_hidden} % else: ${_('This repository does not have any push url set.')} ${_('Set remote url.')} % endif
${_('This feature is available in RhodeCode EE edition only. Contact {sales_email} to obtain a trial license.').format(sales_email='sales@rhodecode.com')|n}