PageRenderTime 25ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/dataset/embed.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 19 lines | 11 code | 3 blank | 5 comment | 3 complexity | a1d5b3a367f8b7ed8b25b80b6e19151a MD5 | raw file
 1<%inherit file="/embed_base.mako"/>
 2<%!
 3	from galaxy.web.framework.helpers import iff
 4%>
 5
 6<%def name="render_item_links( dataset )">
 7    <a href="${h.url_for( controller='/dataset', action='display', dataset_id=trans.security.encode_id( dataset.id ), to_ext=dataset.ext )}" title="Save dataset" class="icon-button disk tooltip"></a>
 8    ## Links for importing and viewing an item.
 9    <a href="${h.url_for( controller='/dataset', action='imp', dataset_id=trans.security.encode_id( item.id ) )}" title="Import dataset" class="icon-button import tooltip"></a>
10    <a class="icon-button go-to-full-screen tooltip" href="${h.url_for( controller='/dataset', action='display_by_username_and_slug', username=dataset.history.user.username, slug=trans.security.encode_id( dataset.id ) )}" title="Go to dataset"></a>
11    
12</%def>
13
14<%def name="render_summary_content( dataset, data )">
15##    <ul>
16##        <li>Format : ${dataset.extension}
17##        <pre>${dataset.peek}</pre>
18##    </ul>
19</%def>