##// END OF EJS Templates
ui: hide action buttons for unpriviledged users on artifacts.
marcink -
r3678:23990466 new-ui
parent child Browse files
Show More
@@ -391,12 +391,14 b''
391 ## <div class="grid_edit">
391 ## <div class="grid_edit">
392 ## <a href="#Edit" title="${_('Edit')}">${_('Edit')}</a>
392 ## <a href="#Edit" title="${_('Edit')}">${_('Edit')}</a>
393 ## </div>
393 ## </div>
394 % if h.HasRepoPermissionAny('repository.admin')(c.repo_name):
394 <div class="grid_delete">
395 <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.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 ${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 onclick="return confirm('"+_('Confirm to delete this artifact: %s') % file_uid+"');")}
398 ${h.end_form()}
399 ${h.end_form()}
399 </div>
400 </div>
401 % endif
400 </%def>
402 </%def>
401
403
402 <%def name="markup_form(form_id, form_text='', help_text=None)">
404 <%def name="markup_form(form_id, form_text='', help_text=None)">
General Comments 0
You need to be logged in to leave comments. Login now