<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <%namespace file="/dataset/security_common.mako" import="render_permission_form" /> <%namespace file="/library/common/common.mako" import="render_template_fields" /> <% current_user_roles = trans.get_current_user_roles() %> %if message: ${render_msg( message, status )} %endif %if trans.app.security_agent.can_modify_library_item( current_user_roles, library ):
Change library name and description

%else:

View information about ${library.name}
${library.name}
${library.description}
${library.synopsis}
${render_template_fields( 'mobile', 'library', trans.security.encode_id( library.id ), widgets, widget_fields_have_contents, info_association, inherited )}
%endif %if trans.app.security_agent.can_manage_library_item( current_user_roles, library ): <% roles = trans.app.security_agent.get_legitimate_roles( trans, library, 'mobile' ) %> ${render_permission_form( library, library.name, h.url_for( controller='library_common', cntrller='mobile', action='library_permissions', id=trans.security.encode_id( library.id ) ), roles )} %endif %if widgets: ${render_template_fields( 'mobile', 'library', trans.security.encode_id( library.id ), widgets, widget_fields_have_contents, info_association inherited )} %endif