##// END OF EJS Templates
artifacts: expose new repo specific URLs
marcink -
r3729:86fc5f25 new-ui
parent child Browse files
Show More
@@ -360,6 +360,7 b' function registerRCRoutes() {'
360 pyroutes.register('repo_artifacts_list', '/%(repo_name)s/artifacts', ['repo_name']);
360 pyroutes.register('repo_artifacts_list', '/%(repo_name)s/artifacts', ['repo_name']);
361 pyroutes.register('repo_artifacts_data', '/%(repo_name)s/artifacts_data', ['repo_name']);
361 pyroutes.register('repo_artifacts_data', '/%(repo_name)s/artifacts_data', ['repo_name']);
362 pyroutes.register('repo_artifacts_new', '/%(repo_name)s/artifacts/new', ['repo_name']);
362 pyroutes.register('repo_artifacts_new', '/%(repo_name)s/artifacts/new', ['repo_name']);
363 pyroutes.register('repo_artifacts_get', '/%(repo_name)s/artifacts/download/%(uid)s', ['repo_name', 'uid']);
363 pyroutes.register('repo_artifacts_store', '/%(repo_name)s/artifacts/store', ['repo_name']);
364 pyroutes.register('repo_artifacts_store', '/%(repo_name)s/artifacts/store', ['repo_name']);
364 pyroutes.register('repo_artifacts_delete', '/%(repo_name)s/artifacts/delete/%(uid)s', ['repo_name', 'uid']);
365 pyroutes.register('repo_artifacts_delete', '/%(repo_name)s/artifacts/delete/%(uid)s', ['repo_name', 'uid']);
365 pyroutes.register('repo_automation', '/%(repo_name)s/settings/automation', ['repo_name']);
366 pyroutes.register('repo_automation', '/%(repo_name)s/settings/automation', ['repo_name']);
@@ -379,12 +379,12 b''
379
379
380 ## ARTIFACT RENDERERS
380 ## ARTIFACT RENDERERS
381
381
382 <%def name="repo_artifact_uid(file_uid)">
382 <%def name="repo_artifact_uid(repo_name, file_uid)">
383 <code><a href="${h.route_path('download_file', fid=file_uid)}">${file_uid}</a></code>
383 <code><a href="${h.route_path('repo_artifacts_get', repo_name=repo_name, uid=file_uid)}">${file_uid}</a></code>
384 </%def>
384 </%def>
385
385
386 <%def name="repo_artifact_uid_action(file_uid)">
386 <%def name="repo_artifact_uid_action(repo_name, file_uid)">
387 <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${h.route_url('download_file', fid=file_uid)}" title="${_('Copy the full url')}"></i>
387 <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${h.route_url('repo_artifacts_get', repo_name=repo_name, uid=file_uid)}" title="${_('Copy the full url')}"></i>
388 </%def>
388 </%def>
389
389
390 <%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">
390 <%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">
General Comments 0
You need to be logged in to leave comments. Login now