%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
<%namespace file="/dataset/security_common.mako" import="render_permission_form" />
<%
if len( lddas ) > 1:
name_str = '%d selected datasets' % len( lddas )
else:
ldda = lddas[0]
name_str = ldda.name
%>
%if message:
${render_msg( message, status )}
%endif
%if len( lddas ) > 1:
Manage the following selected datasets
%for ldd_assoc in lddas:
${ldd_assoc.name}
|
%if ldd_assoc == ldd_assoc.library_dataset.library_dataset_dataset_association:
This is the latest version of this library dataset
%else:
This is an expired version of this library dataset
%endif
|
%endfor
%else:
%if ldda == ldda.library_dataset.library_dataset_dataset_association:
This is the latest version of this library dataset
%else:
This is an expired version of this library dataset
%endif
%endif
<% ldda_ids = ",".join( [ trans.security.encode_id( d.id ) for d in lddas ] ) %>
## LIBRARY_ACCESS is a special permission that is set only at the library level,
## and DATASET_MANAGE_PERMISSIONS is inherited to the dataset from the ldda.
${render_permission_form( lddas[0], name_str, h.url_for( controller='library_common', action='ldda_permissions', cntrller=cntrller, library_id=library_id, folder_id=trans.security.encode_id( lddas[0].library_dataset.folder.id ), id=ldda_ids, show_deleted=show_deleted ), roles, do_not_render=[ 'LIBRARY_ACCESS', 'DATASET_MANAGE_PERMISSIONS' ] )}