from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 5 _modified_time = 1287725327.3004439 _template_filename='templates/root/history.mako' _template_uri='root/history.mako' _template_cache=cache.Cache(__name__, _modified_time) _source_encoding=None _exports = [] 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): # SOURCE LINE 364 ns = runtime.Namespace('__anon_0x110c0db10', context._clean_inheritance_tokens(), templateuri=u'../tagging_common.mako', callables=None, calling_uri=_template_uri, module=None) context.namespaces[(__name__, '__anon_0x110c0db10')] = ns # SOURCE LINE 365 ns = runtime.Namespace('__anon_0x110c0dc10', context._clean_inheritance_tokens(), templateuri=u'history_common.mako', callables=None, calling_uri=_template_uri, module=None) context.namespaces[(__name__, '__anon_0x110c0dc10')] = ns def render_body(context,**pageargs): context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) _import_ns = {} _mako_get_namespace(context, '__anon_0x110c0db10')._populate(_import_ns, [u'render_individual_tagging_element']) _mako_get_namespace(context, '__anon_0x110c0dc10')._populate(_import_ns, [u'render_dataset']) datasets = _import_ns.get('datasets', context.get('datasets', UNDEFINED)) show_deleted = _import_ns.get('show_deleted', context.get('show_deleted', UNDEFINED)) h = _import_ns.get('h', context.get('h', UNDEFINED)) reversed = _import_ns.get('reversed', context.get('reversed', UNDEFINED)) render_dataset = _import_ns.get('render_dataset', context.get('render_dataset', UNDEFINED)) trans = _import_ns.get('trans', context.get('trans', UNDEFINED)) dict = _import_ns.get('dict', context.get('dict', UNDEFINED)) show_hidden = _import_ns.get('show_hidden', context.get('show_hidden', UNDEFINED)) render_individual_tagging_element = _import_ns.get('render_individual_tagging_element', context.get('render_individual_tagging_element', UNDEFINED)) n_ = _import_ns.get('n_', context.get('n_', UNDEFINED)) hda_id = _import_ns.get('hda_id', context.get('hda_id', UNDEFINED)) bool = _import_ns.get('bool', context.get('bool', UNDEFINED)) annotation = _import_ns.get('annotation', context.get('annotation', UNDEFINED)) history = _import_ns.get('history', context.get('history', UNDEFINED)) __M_writer = context.writer() # SOURCE LINE 1 _=n_ __M_locals.update(__M_dict_builtin([(__M_key, __M_locals_builtin()[__M_key]) for __M_key in ['_'] if __M_key in __M_locals_builtin()])) __M_writer(u'\n\n\n\n\n\n') # SOURCE LINE 7 __M_writer(unicode(_('Galaxy History'))) __M_writer(u'\n\n') # SOURCE LINE 10 if bool( [ data for data in history.active_datasets if data.state in ['running', 'queued', '', None ] ] ): # SOURCE LINE 11 __M_writer(u'\n') # SOURCE LINE 13 __M_writer(u'\n\n\n\n') # SOURCE LINE 17 __M_writer(unicode(h.css( "base", "history", "autocomplete_tagging" ))) __M_writer(u'\n') # SOURCE LINE 18 __M_writer(unicode(h.js( "jquery", "jquery.tipsy", "galaxy.base", "json2", "class", "jquery.jstore", "jquery.autocomplete", "autocomplete_tagging" ))) __M_writer(u'\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n') # SOURCE LINE 335 if show_deleted: # SOURCE LINE 336 __M_writer(u'\n') # SOURCE LINE 340 __M_writer(u'\n') # SOURCE LINE 341 if show_hidden: # SOURCE LINE 342 __M_writer(u'\n') # SOURCE LINE 346 __M_writer(u'\n\n\n') # SOURCE LINE 357 if history.deleted: # SOURCE LINE 358 __M_writer(u'
\n ') # SOURCE LINE 359 __M_writer(unicode(_('You are currently viewing a deleted history!'))) __M_writer(u'\n
\n

\n') # SOURCE LINE 363 __M_writer(u'\n') # SOURCE LINE 364 __M_writer(u'\n') # SOURCE LINE 365 __M_writer(u'\n\n') # SOURCE LINE 367 if trans.get_user() is not None: # SOURCE LINE 368 __M_writer(u'
\n') # SOURCE LINE 370 __M_writer(u' \n \n') # SOURCE LINE 376 __M_writer(u' \n \n
\n') # SOURCE LINE 391 __M_writer(u'\n') # SOURCE LINE 392 if not datasets: # SOURCE LINE 393 __M_writer(u'\n
\n\n') # SOURCE LINE 396 else: # SOURCE LINE 397 __M_writer(u'\n') # SOURCE LINE 399 for data in reversed( datasets ): # SOURCE LINE 400 if data.visible or show_hidden: # SOURCE LINE 401 __M_writer(u'
\n ') # SOURCE LINE 402 __M_writer(unicode(render_dataset( data, data.hid, show_deleted_on_refresh = show_deleted, for_editing = True ))) __M_writer(u'\n
\n') # SOURCE LINE 406 __M_writer(u'\n \n\n\n\n') return '' finally: context.caller_stack._pop_frame()