artifacts: update display to not show elements for copy. The info page is now for this.

This commit is contained in:
Marcin Kuzminski 2019-11-21 16:01:07 +01:00
parent 3373df2ac9
commit 1f5c42b787
2 changed files with 2 additions and 2 deletions

View file

@ -380,6 +380,7 @@ function registerRCRoutes() {
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_artifacts_update', '/%(repo_name)s/artifacts/update/%(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']);
pyroutes.register('edit_repo_remote_push', '/%(repo_name)s/settings/remote/push', ['repo_name']);

View file

@ -398,11 +398,10 @@ ${h.style_metatag(tag_type, tag)|n,trim}
<%def name="repo_artifact_uid(repo_name, file_uid)">
<code>${h.shorter(file_uid, size=24, prefix=True)}</code>
<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>
<div class="code">${h.shorter(artifact_sha256, 12)}</div>
</%def>
<%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">