mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Convert history?as_xml to use a mako template.
This commit is contained in:
@@ -84,11 +84,11 @@ class Universe( BaseController ):
|
||||
return self.history_new(trans)
|
||||
if as_xml:
|
||||
trans.response.set_content_type('text/xml')
|
||||
template = "history.xml"
|
||||
return trans.fill_template_mako( "root/history_as_xml.mako", history=history )
|
||||
else:
|
||||
template = "root/history.mako"
|
||||
mode = trans.get_cookie(name=self.pref_cookie_name)
|
||||
return trans.fill_template(template, history=history, mode=mode )
|
||||
mode = trans.get_cookie( name=self.pref_cookie_name )
|
||||
return trans.fill_template( "root/history.mako", history=history, mode=mode )
|
||||
|
||||
@web.expose
|
||||
def display(self, trans, id=None, hid=None, tofile=None, toext=".txt"):
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<history>
|
||||
#for $data in $history.active_datasets
|
||||
<data id="$data.id" hid="$data.hid" name="$data.name" state="$data.state" dbkey="$data.dbkey">
|
||||
$data.blurb
|
||||
</data>
|
||||
#end for
|
||||
</history>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<history>
|
||||
%for data in history.active_datasets:
|
||||
<data id="${data.id}" hid="${data.hid}" name="${data.name}" state="${data.state}" dbkey="${data.dbkey}">
|
||||
${data.blurb}
|
||||
</data>
|
||||
%endfor
|
||||
</history>
|
||||
Reference in New Issue
Block a user