## ## Base template for exporting an item. Template expects the following parameters: ## (a) item - item to be exported. ## <%! def inherit(context): if context.get('use_panels', False) == True: 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="*" /> <%namespace file="/message.mako" import="render_msg" /> ## ## 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="" # Get class name strings. self.item_class_name = get_class_display_name( item.__class__ ) self.item_class_name_lc = self.item_class_name.lower() self.item_class_plural_name = get_class_plural_display_name( item.__class__ ) self.item_class_plural_name_lc = self.item_class_plural_name.lower() %> <%def name="title()"> Export ${get_class_display_name( item.__class__ )} '${get_item_name( item )}' <%def name="stylesheets()"> ${parent.stylesheets()} <%def name="center_panel()"> ${self.body()} <%def name="render_download_to_file(item)">

Download to File

Download ${get_class_display_name( item.__class__ ).lower()} to file so that it can be saved or imported into another Galaxy server. <%def name="render_more(item)"> ## Override. <%def name="render_footer()">



Back to ${self.item_class_plural_name} List <%def name="body()"> <% item_name = get_item_name(item) %>

Download or Export ${self.item_class_name} '${item_name}'

${self.render_download_to_file(item)} ${self.render_more(item)} ${self.render_footer()}