## ## Base template for sharing an item with an individual user. Template expects the following parameters: ## (a) item - item to be shared. ## <%! def inherit(context): if context.get('use_panels'): if context.get('webapp'): webapp = context.get('webapp') else: webapp = 'galaxy' return '/webapps/%s/base_panels.mako' % webapp else: return '/base.mako' %> <%inherit file="${inherit(context)}"/> <%namespace file="./display_common.mako" import="*" /> ## ## Page methods. ## <%def name="init()"> <% self.has_left_panel=False self.has_right_panel=False self.message_box_visible=False self.overlay_visible=False self.message_box_class="" self.active_view="" self.body_class="" %> %def> <%def name="stylesheets()"> ${parent.stylesheets()} %def> <%def name="center_panel()"> ${self.body()} %def> <%def name="body()"> %if message: <% if messagetype is UNDEFINED: mt = "done" else: mt = messagetype %>
%endif <% # # Setup and variables needed for page. # # Get class name strings. item_class_name = get_class_display_name( item.__class__ ) item_class_name_lc = item_class_name.lower() item_class_plural_name = get_class_plural_display_name( item.__class__ ) item_class_plural_name_lc = item_class_plural_name.lower() # Get item name. item_name = get_item_name(item) %>