artifacts: expose new repo specific URLs
This commit is contained in:
parent
db360afc78
commit
672dbc4a0b
2 changed files with 5 additions and 4 deletions
|
|
@ -360,6 +360,7 @@ function registerRCRoutes() {
|
|||
pyroutes.register('repo_artifacts_list', '/%(repo_name)s/artifacts', ['repo_name']);
|
||||
pyroutes.register('repo_artifacts_data', '/%(repo_name)s/artifacts_data', ['repo_name']);
|
||||
pyroutes.register('repo_artifacts_new', '/%(repo_name)s/artifacts/new', ['repo_name']);
|
||||
pyroutes.register('repo_artifacts_get', '/%(repo_name)s/artifacts/download/%(uid)s', ['repo_name', 'uid']);
|
||||
pyroutes.register('repo_artifacts_store', '/%(repo_name)s/artifacts/store', ['repo_name']);
|
||||
pyroutes.register('repo_artifacts_delete', '/%(repo_name)s/artifacts/delete/%(uid)s', ['repo_name', 'uid']);
|
||||
pyroutes.register('repo_automation', '/%(repo_name)s/settings/automation', ['repo_name']);
|
||||
|
|
|
|||
|
|
@ -379,12 +379,12 @@
|
|||
|
||||
## ARTIFACT RENDERERS
|
||||
|
||||
<%def name="repo_artifact_uid(file_uid)">
|
||||
<code><a href="${h.route_path('download_file', fid=file_uid)}">${file_uid}</a></code>
|
||||
<%def name="repo_artifact_uid(repo_name, file_uid)">
|
||||
<code><a href="${h.route_path('repo_artifacts_get', repo_name=repo_name, uid=file_uid)}">${file_uid}</a></code>
|
||||
</%def>
|
||||
|
||||
<%def name="repo_artifact_uid_action(file_uid)">
|
||||
<i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${h.route_url('download_file', fid=file_uid)}" title="${_('Copy the full url')}"></i>
|
||||
<%def name="repo_artifact_uid_action(repo_name, file_uid)">
|
||||
<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>
|
||||
</%def>
|
||||
|
||||
<%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue