repo_edit_remote.mako
40 lines
| 1.6 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | <div class="panel panel-default"> | |||
<div class="panel-heading"> | ||||
<h3 class="panel-title">${_('Remote url')}</h3> | ||||
</div> | ||||
<div class="panel-body"> | ||||
r1741 | <h4>${_('Manually pull changes from external repository.')}</h4> | |||
r2081 | %if c.rhodecode_db_repo.clone_uri: | |||
r1282 | ||||
r1741 | ${_('Remote mirror url')}: | |||
r2081 | <a href="${c.rhodecode_db_repo.clone_uri}">${c.rhodecode_db_repo.clone_uri_hidden}</a> | |||
r1741 | ||||
<p> | ||||
${_('Pull can be automated by such api call. Can be called periodically in crontab etc.')} | ||||
<br/> | ||||
r1551 | <code> | |||
r2081 | ${h.api_call_example(method='pull', args={"repoid": c.rhodecode_db_repo.repo_name})} | |||
r1551 | </code> | |||
r1741 | </p> | |||
r1282 | ||||
r2105 | ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)} | |||
r1282 | <div class="form"> | |||
<div class="fields"> | ||||
r2081 | ${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')+"');")} | |||
r1282 | </div> | |||
</div> | ||||
${h.end_form()} | ||||
%else: | ||||
r1741 | ${_('This repository does not have any remote mirror url set.')} | |||
r2081 | <a href="${h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name)}">${_('Set remote url.')}</a> | |||
r1741 | <br/> | |||
<br/> | ||||
r1551 | <button class="btn disabled" type="submit" disabled="disabled"> | |||
r1282 | ${_('Pull changes from remote location')} | |||
</button> | ||||
%endif | ||||
</div> | ||||
</div> | ||||