# HG changeset patch # User Marcin Kuzminski # Date 2019-06-06 12:58:58 # Node ID 86fc5f2505c56f61982a0c400ba9e1d85418db4d # Parent 20990e78a3b1a288477382edd1461024a920d9ad artifacts: expose new repo specific URLs diff --git a/rhodecode/public/js/rhodecode/routes.js b/rhodecode/public/js/rhodecode/routes.js --- a/rhodecode/public/js/rhodecode/routes.js +++ b/rhodecode/public/js/rhodecode/routes.js @@ -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']); diff --git a/rhodecode/templates/data_table/_dt_elements.mako b/rhodecode/templates/data_table/_dt_elements.mako --- a/rhodecode/templates/data_table/_dt_elements.mako +++ b/rhodecode/templates/data_table/_dt_elements.mako @@ -379,12 +379,12 @@ ## ARTIFACT RENDERERS -<%def name="repo_artifact_uid(file_uid)"> - ${file_uid} +<%def name="repo_artifact_uid(repo_name, file_uid)"> + ${file_uid} -<%def name="repo_artifact_uid_action(file_uid)"> - +<%def name="repo_artifact_uid_action(repo_name, file_uid)"> + <%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">