%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
<%namespace file="/library/common/common.mako" import="render_template_fields" />
<%def name="javascripts()">
${parent.javascripts()}
%def>
<%
from cgi import escape
if trans.user_is_admin() and cntrller == 'library_admin':
can_add = can_modify = can_manage = True
elif cntrller in [ 'library', 'requests' ]:
can_add = trans.app.security_agent.can_add_library_item( current_user_roles, library )
can_modify = trans.app.security_agent.can_modify_library_item( current_user_roles, library )
can_manage = trans.app.security_agent.can_manage_library_item( current_user_roles, library )
else:
can_add = can_modify = can_manage = False
library_name = escape( str( library.name ), quote=True )
library_description = escape( str( library.description ), quote=True )
library_synopsis = escape( str( library.synopsis ), quote=True )
%>