artifacts: expose info link page.
This commit is contained in:
parent
1f16da1ab3
commit
56e7633fd6
2 changed files with 9 additions and 1 deletions
|
|
@ -369,6 +369,7 @@ function registerRCRoutes() {
|
|||
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_info', '/%(repo_name)s/artifacts/info/%(uid)s', ['repo_name', 'uid']);
|
||||
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']);
|
||||
pyroutes.register('repo_automation_update', '/%(repo_name)s/settings/automation/%(entry_id)s/update', ['repo_name', 'entry_id']);
|
||||
|
|
|
|||
|
|
@ -390,11 +390,18 @@
|
|||
<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_sha256(artifact_sha256)">
|
||||
<div class="code">${h.shorter(artifact_sha256, 12)}<i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${artifact_sha256}" title="${_('Copy the sha256 ({})').format(artifact_sha256)}"></i></div>
|
||||
</%def>
|
||||
|
||||
<%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">
|
||||
## <div class="grid_edit">
|
||||
## <a href="#Edit" title="${_('Edit')}">${_('Edit')}</a>
|
||||
## </div>
|
||||
% if h.HasRepoPermissionAny('repository.admin')(c.repo_name):
|
||||
<div class="grid_edit">
|
||||
<a href="${h.route_path('repo_artifacts_info', repo_name=repo_name, uid=file_store_id)}" title="${_('Info')}">${_('Info')}</a>
|
||||
</div>
|
||||
% if h.HasRepoPermissionAny('repository.admin')(c.repo_name):
|
||||
<div class="grid_delete">
|
||||
${h.secure_form(h.route_path('repo_artifacts_delete', repo_name=repo_name, uid=file_store_id), request=request)}
|
||||
${h.submit('remove_',_('Delete'),id="remove_artifact_%s" % file_store_id, class_="btn btn-link btn-danger",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue