##// END OF EJS Templates
artifacts: expose info link page.
dan -
r3966:1727d99c default
parent child Browse files
Show More
@@ -369,6 +369,7 b' function registerRCRoutes() {'
369 pyroutes.register('repo_artifacts_new', '/%(repo_name)s/artifacts/new', ['repo_name']);
369 pyroutes.register('repo_artifacts_new', '/%(repo_name)s/artifacts/new', ['repo_name']);
370 pyroutes.register('repo_artifacts_get', '/%(repo_name)s/artifacts/download/%(uid)s', ['repo_name', 'uid']);
370 pyroutes.register('repo_artifacts_get', '/%(repo_name)s/artifacts/download/%(uid)s', ['repo_name', 'uid']);
371 pyroutes.register('repo_artifacts_store', '/%(repo_name)s/artifacts/store', ['repo_name']);
371 pyroutes.register('repo_artifacts_store', '/%(repo_name)s/artifacts/store', ['repo_name']);
372 pyroutes.register('repo_artifacts_info', '/%(repo_name)s/artifacts/info/%(uid)s', ['repo_name', 'uid']);
372 pyroutes.register('repo_artifacts_delete', '/%(repo_name)s/artifacts/delete/%(uid)s', ['repo_name', 'uid']);
373 pyroutes.register('repo_artifacts_delete', '/%(repo_name)s/artifacts/delete/%(uid)s', ['repo_name', 'uid']);
373 pyroutes.register('repo_automation', '/%(repo_name)s/settings/automation', ['repo_name']);
374 pyroutes.register('repo_automation', '/%(repo_name)s/settings/automation', ['repo_name']);
374 pyroutes.register('repo_automation_update', '/%(repo_name)s/settings/automation/%(entry_id)s/update', ['repo_name', 'entry_id']);
375 pyroutes.register('repo_automation_update', '/%(repo_name)s/settings/automation/%(entry_id)s/update', ['repo_name', 'entry_id']);
@@ -390,11 +390,18 b''
390 <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>
390 <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>
391 </%def>
391 </%def>
392
392
393 <%def name="repo_artifact_sha256(artifact_sha256)">
394 <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>
395 </%def>
396
393 <%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">
397 <%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">
394 ## <div class="grid_edit">
398 ## <div class="grid_edit">
395 ## <a href="#Edit" title="${_('Edit')}">${_('Edit')}</a>
399 ## <a href="#Edit" title="${_('Edit')}">${_('Edit')}</a>
396 ## </div>
400 ## </div>
397 % if h.HasRepoPermissionAny('repository.admin')(c.repo_name):
401 <div class="grid_edit">
402 <a href="${h.route_path('repo_artifacts_info', repo_name=repo_name, uid=file_store_id)}" title="${_('Info')}">${_('Info')}</a>
403 </div>
404 % if h.HasRepoPermissionAny('repository.admin')(c.repo_name):
398 <div class="grid_delete">
405 <div class="grid_delete">
399 ${h.secure_form(h.route_path('repo_artifacts_delete', repo_name=repo_name, uid=file_store_id), request=request)}
406 ${h.secure_form(h.route_path('repo_artifacts_delete', repo_name=repo_name, uid=file_store_id), request=request)}
400 ${h.submit('remove_',_('Delete'),id="remove_artifact_%s" % file_store_id, class_="btn btn-link btn-danger",
407 ${h.submit('remove_',_('Delete'),id="remove_artifact_%s" % file_store_id, class_="btn btn-link btn-danger",
General Comments 0
You need to be logged in to leave comments. Login now