from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 5 _modified_time = 1287725326.7005551 _template_filename='templates/root/index.mako' _template_uri='root/index.mako' _template_cache=cache.Cache(__name__, _modified_time) _source_encoding=None _exports = ['init', 'left_panel', 'center_panel', 'late_javascripts', 'right_panel'] def _mako_get_namespace(context, name): try: return context.namespaces[(__name__, name)] except KeyError: _mako_generate_namespaces(context) return context.namespaces[(__name__, name)] def _mako_generate_namespaces(context): pass def _mako_inherit(template, context): _mako_generate_namespaces(context) return runtime._inherit_from(context, u'/webapps/galaxy/base_panels.mako', _template_uri) def render_body(context,**pageargs): context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) __M_writer = context.writer() # SOURCE LINE 1 __M_writer(u'\n\n') # SOURCE LINE 156 __M_writer(u'\n\n') # SOURCE LINE 176 __M_writer(u'\n\n') # SOURCE LINE 190 __M_writer(u'\n\n') # SOURCE LINE 212 __M_writer(u'\n\n') # SOURCE LINE 226 __M_writer(u'\n') return '' finally: context.caller_stack._pop_frame() def render_init(context): context.caller_stack._push_frame() try: self = context.get('self', UNDEFINED) trans = context.get('trans', UNDEFINED) __M_writer = context.writer() # SOURCE LINE 158 __M_writer(u'\n') # SOURCE LINE 159 if trans.app.config.cloud_controller_instance: self.has_left_panel=False self.has_right_panel=False self.active_view="cloud" else: self.has_left_panel=True self.has_right_panel=True self.active_view="analysis" # SOURCE LINE 168 __M_writer(u'\n') # SOURCE LINE 169 if trans.app.config.require_login and not trans.user: # SOURCE LINE 170 __M_writer(u' \n') return '' finally: context.caller_stack._pop_frame() def render_left_panel(context): context.caller_stack._push_frame() try: h = context.get('h', UNDEFINED) _ = context.get('_', UNDEFINED) n_ = context.get('n_', UNDEFINED) __M_writer = context.writer() # SOURCE LINE 178 __M_writer(u'\n
\n
\n
\n ') # SOURCE LINE 182 __M_writer(unicode(_('Options'))) __M_writer(u'\n
\n ') # SOURCE LINE 184 __M_writer(unicode(n_('Tools'))) __M_writer(u'\n
\n
\n
\n \n
\n') return '' finally: context.caller_stack._pop_frame() def render_center_panel(context): context.caller_stack._push_frame() try: tool_id = context.get('tool_id', UNDEFINED) m_c = context.get('m_c', UNDEFINED) h = context.get('h', UNDEFINED) m_a = context.get('m_a', UNDEFINED) workflow_id = context.get('workflow_id', UNDEFINED) trans = context.get('trans', UNDEFINED) __M_writer = context.writer() # SOURCE LINE 192 __M_writer(u'\n\n') # SOURCE LINE 195 __M_writer(u' ') if trans.app.config.require_login and not trans.user: center_url = h.url_for( controller='user', action='login' ) elif tool_id is not None: center_url = h.url_for( 'tool_runner', tool_id=tool_id, from_noframe=True ) elif workflow_id is not None: center_url = h.url_for( controller='workflow', action='run', id=workflow_id ) elif m_c is not None: center_url = h.url_for( controller=m_c, action=m_a ) elif trans.app.config.cloud_controller_instance: center_url = h.url_for( controller='cloud', action='list' ) else: center_url = h.url_for( '/static/welcome.html' ) # SOURCE LINE 208 __M_writer(u'\n \n \n\n') return '' finally: context.caller_stack._pop_frame() def render_late_javascripts(context): context.caller_stack._push_frame() try: h = context.get('h', UNDEFINED) trans = context.get('trans', UNDEFINED) parent = context.get('parent', UNDEFINED) __M_writer = context.writer() # SOURCE LINE 3 __M_writer(u'\n ') # SOURCE LINE 4 __M_writer(unicode(parent.late_javascripts())) __M_writer(u'\n \n') return '' finally: context.caller_stack._pop_frame() def render_right_panel(context): context.caller_stack._push_frame() try: h = context.get('h', UNDEFINED) _ = context.get('_', UNDEFINED) __M_writer = context.writer() # SOURCE LINE 214 __M_writer(u'\n
\n
\n
\n ') __M_writer(unicode(_('Options'))) __M_writer(u'\n
\n
') # SOURCE LINE 220 __M_writer(unicode(_('History'))) __M_writer(u'
\n
\n
\n
\n \n
\n') return '' finally: context.caller_stack._pop_frame()