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 @@
- ${_('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})}
- ${_('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})}
-