##// END OF EJS Templates
artifacts: updated CE code for this EE feature.
marcink -
r3675:38553320 new-ui
parent child Browse files
Show More
@@ -2516,3 +2516,36 b' form.markup-form {'
2516 2516 padding: 20px;
2517 2517 background-color: white;
2518 2518 }
2519
2520 .dropzone {
2521 border: 2px dashed @rcdarkblue;
2522 border-radius: 5px;
2523 background: white;
2524 min-height: 200px;
2525 padding: 54px;
2526 }
2527 .dropzone .dz-message {
2528 font-weight: 700;
2529 }
2530
2531 .dropzone .dz-message {
2532 text-align: center;
2533 margin: 2em 0;
2534 }
2535
2536 .dz-preview {
2537 margin: 10px -40px !important;
2538 position: relative;
2539 vertical-align: top;
2540 border: 1px solid @grey4;
2541 border-radius: 5px;
2542 padding: 10px;
2543 }
2544
2545 .dz-filename {
2546 font-weight: 700;
2547 }
2548
2549 .dz-error-message {
2550 color: @alert2;
2551 } No newline at end of file
@@ -103,6 +103,11 b' table.dataTable {'
103 103 }
104 104 }
105 105
106 &.td-icon {
107 min-width: 20px;
108 width: 20px;
109 }
110
106 111 &.td-hash {
107 112 min-width: 80px;
108 113 width: 200px;
@@ -131,6 +131,7 b' function registerRCRoutes() {'
131 131 pyroutes.register('repo_new', '/_admin/repos/new', []);
132 132 pyroutes.register('repo_create', '/_admin/repos/create', []);
133 133 pyroutes.register('repo_groups', '/_admin/repo_groups', []);
134 pyroutes.register('repo_groups_data', '/_admin/repo_groups_data', []);
134 135 pyroutes.register('repo_group_new', '/_admin/repo_group/new', []);
135 136 pyroutes.register('repo_group_create', '/_admin/repo_group/create', []);
136 137 pyroutes.register('channelstream_connect', '/_admin/channelstream/connect', []);
@@ -356,6 +357,11 b' function registerRCRoutes() {'
356 357 pyroutes.register('my_account_auth_tokens_add', '/_admin/my_account/auth_tokens/new', []);
357 358 pyroutes.register('my_account_external_identity', '/_admin/my_account/external-identity', []);
358 359 pyroutes.register('my_account_external_identity_delete', '/_admin/my_account/external-identity/delete', []);
360 pyroutes.register('repo_artifacts_list', '/%(repo_name)s/artifacts', ['repo_name']);
361 pyroutes.register('repo_artifacts_data', '/%(repo_name)s/artifacts_data', ['repo_name']);
362 pyroutes.register('repo_artifacts_new', '/%(repo_name)s/artifacts/new', ['repo_name']);
363 pyroutes.register('repo_artifacts_store', '/%(repo_name)s/artifacts/store', ['repo_name']);
364 pyroutes.register('repo_artifacts_delete', '/%(repo_name)s/artifacts/delete/%(uid)s', ['repo_name', 'uid']);
359 365 pyroutes.register('repo_automation', '/%(repo_name)s/settings/automation', ['repo_name']);
360 366 pyroutes.register('repo_automation_update', '/%(repo_name)s/settings/automation/%(entry_id)s/update', ['repo_name', 'entry_id']);
361 367 pyroutes.register('edit_repo_remote_push', '/%(repo_name)s/settings/remote/push', ['repo_name']);
@@ -377,6 +377,28 b''
377 377 </%def>
378 378
379 379
380 ## ARTIFACT RENDERERS
381
382 <%def name="repo_artifact_uid(file_uid)">
383 <code><a href="${h.route_path('download_file', fid=file_uid)}">${file_uid}</a></code>
384 </%def>
385
386 <%def name="repo_artifact_uid_action(file_uid)">
387 <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${h.route_url('download_file', fid=file_uid)}" title="${_('Copy the full url')}"></i>
388 </%def>
389
390 <%def name="repo_artifact_actions(repo_name, file_store_id, file_uid)">
391 ## <div class="grid_edit">
392 ## <a href="#Edit" title="${_('Edit')}">${_('Edit')}</a>
393 ## </div>
394 <div class="grid_delete">
395 ${h.secure_form(h.route_path('repo_artifacts_delete', repo_name=repo_name, uid=file_store_id), request=request)}
396 ${h.submit('remove_',_('Delete'),id="remove_artifact_%s" % file_store_id, class_="btn btn-link btn-danger",
397 onclick="return confirm('"+_('Confirm to delete this artifact: %s') % file_uid+"');")}
398 ${h.end_form()}
399 </div>
400 </%def>
401
380 402 <%def name="markup_form(form_id, form_text='', help_text=None)">
381 403
382 404 <div class="markup-form">
General Comments 0
You need to be logged in to leave comments. Login now