diff --git a/rhodecode/templates/admin/repos/repo_edit_caches.mako b/rhodecode/templates/admin/repos/repo_edit_caches.mako --- a/rhodecode/templates/admin/repos/repo_edit_caches.mako +++ b/rhodecode/templates/admin/repos/repo_edit_caches.mako @@ -7,10 +7,10 @@

${_('Manually invalidate the repository cache. On the next access a repository cache will be recreated.')}

- ${_('Cache purge can be automated by such api call called periodically (in crontab etc)')} + ${_('Cache purge can be automated by such api call. Can be called periodically in crontab etc.')}
- curl ${h.route_url('apiv2')} -X POST -H 'content-type:text/plain' --data-binary '{"id":1, "auth_token":"SECRET", "method":"invalidate_cache", "args":{"repoid":"${c.repo_info.repo_name}"}}' + ${h.api_call_example(method='invalidate_cache', args={"repoid": c.repo_info.repo_name})}

@@ -51,5 +51,3 @@ - - diff --git a/rhodecode/templates/admin/repos/repo_edit_remote.mako b/rhodecode/templates/admin/repos/repo_edit_remote.mako --- a/rhodecode/templates/admin/repos/repo_edit_remote.mako +++ b/rhodecode/templates/admin/repos/repo_edit_remote.mako @@ -4,17 +4,20 @@
+

${_('Manually pull changes from external repository.')}

+ %if c.repo_info.clone_uri: -
${_('Remote mirror url')}: - ${c.repo_info.clone_uri_hidden} -

- ${_('Pull can be automated by such api call called periodically (in crontab etc)')} -

+ ${_('Remote mirror url')}: + ${c.repo_info.clone_uri_hidden} + +

+ ${_('Pull can be automated by such api call. Can be called periodically in crontab etc.')} +
- curl ${h.route_url('apiv2')} -X POST -H 'content-type:text/plain' --data-binary '{"id":1, "auth_token":"SECRET","method":"pull", "args":{"repoid":"${c.repo_info.repo_name}"}}' + ${h.api_call_example(method='pull', args={"repoid": c.repo_info.repo_name})} -

+

${h.secure_form(url('edit_repo_remote', repo_name=c.repo_name), method='put')}
@@ -24,14 +27,14 @@
${h.end_form()} %else: -
${_('This repository does not have any remote mirror url set.')}
+ ${_('This repository does not have any remote mirror url set.')} + ${_('Set remote url.')} +
+
%endif
- - -