1 | <%inherit file="/base.mako"/> |
---|
2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
3 | <%namespace file="/dataset/security_common.mako" import="render_permission_form" />> |
---|
4 | |
---|
5 | %if library_dataset == library_dataset.library_dataset_dataset_association.library_dataset: |
---|
6 | <b><i>This is the latest version of this library dataset</i></b> |
---|
7 | %else: |
---|
8 | <font color="red"><b><i>This is an expired version of this library dataset</i></b></font> |
---|
9 | %endif |
---|
10 | <p/> |
---|
11 | |
---|
12 | <ul class="manage-table-actions"> |
---|
13 | <li> |
---|
14 | <a class="action-button" href="${h.url_for( controller='library_common', action='browse_library', cntrller=cntrller, id=library_id, use_panels=use_panels, show_deleted=show_deleted )}"><span>Browse this data library</span></a> |
---|
15 | </li> |
---|
16 | </ul> |
---|
17 | |
---|
18 | %if message: |
---|
19 | ${render_msg( message, status )} |
---|
20 | %endif |
---|
21 | |
---|
22 | %if ( trans.user_is_admin() and cntrller == 'library_admin' ) or trans.app.security_agent.can_manage_library_item( current_user_roles, library_dataset ): |
---|
23 | ## LIBRARY_ACCESS is a special permission that is set only at the library level. |
---|
24 | ${render_permission_form( library_dataset, library_dataset.name, h.url_for( controller='library_common', action='library_dataset_permissions', cntrller=cntrller, id=trans.security.encode_id( library_dataset.id ), library_id=library_id, show_deleted=show_deleted ), roles, do_not_render=[ 'LIBRARY_ACCESS' ] )} |
---|
25 | %endif |
---|