PageRenderTime 31ms CodeModel.GetById 24ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/root/history_as_xml.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 16 lines | 16 code | 0 blank | 0 comment | 0 complexity | 623114386b012ff06c62d8afbddcbcaa MD5 | raw file
 1<?xml version="1.0"?>
 2<history id="${trans.security.encode_id( history.id )}" num="${len(history.datasets)}" name="${history.name}" create="${history.create_time}" update="${history.update_time}">
 3    %if show_deleted:
 4        %for data in history.activatable_datasets:
 5            <data id="${data.id}" hid="${data.hid}" name="${data.name}" state="${data.state}" dbkey="${data.dbkey}">
 6                ${_(data.blurb)}
 7            </data>
 8        %endfor
 9    %else:
10        %for data in history.active_datasets:
11            <data id="${data.id}" hid="${data.hid}" name="${data.name}" state="${data.state}" dbkey="${data.dbkey}">
12                ${_(data.blurb)}
13            </data>
14        %endfor
15    %endif
16</history>