commit/galaxy-central: carlfeberhard: (Add mako template missing from b8ff65e)
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/8494c2b3a3ed/ Changeset: 8494c2b3a3ed User: carlfeberhard Date: 2014-02-14 19:59:44 Summary: (Add mako template missing from b8ff65e) Affected #: 1 file diff -r b8ff65e15b1b40a76544ef07e7ab98a9b5ce7221 -r 8494c2b3a3edff7f900a9994ccd806d063d5010f templates/webapps/galaxy/visualization/display_in_frame.mako --- /dev/null +++ b/templates/webapps/galaxy/visualization/display_in_frame.mako @@ -0,0 +1,58 @@ +<%inherit file="/display_base.mako"/> + +<%def name="javascripts()"> + <% config = item_data %> + ${parent.javascripts()} + + <script type='text/javascript'> + $(function() { + // HACK: add bookmarks container and header. + $('#right > .unified-panel-body > div').append( + $('<div/>').attr('id', 'bookmarks-container') + .append( $('<h4/>').text('Bookmarks') ) + ); + }); + </script> + + <!--[if lt IE 9]> + <script type='text/javascript' src="${h.url_for('/static/scripts/libs/IE/excanvas.js')}"></script> + <![endif]--> +</%def> + +<%def name="stylesheets()"> + ${parent.stylesheets()} + + ## Style changes needed for display. + <style type="text/css"> + .page-body { + padding: 0px; + } + #bookmarks-container { + padding-left: 10px; + } + .bookmark { + margin: 0em; + } + </style> +</%def> + +<%def name="render_item_header( item )"> + ## Don't need to show header +</%def> + +<%def name="render_item_links( visualization )"> + <a + href="${h.url_for( controller='/visualization', action='imp', id=trans.security.encode_id( visualization.id ) )}" + class="icon-button import" + ## Needed to overwide initial width so that link is floated left appropriately. + style="width: 100%" + title="Import visualization">Import visualization</a> +</%def> + +<%def name="render_item( visualization, config )"> + <div id="${trans.security.encode_id( visualization.id )}" class="unified-panel-body" style="overflow:none;top:0px;"> + <iframe frameborder="0" width="100%" height="100%" sandbox="allow-forms allow-same-origin allow-scripts" + src="/visualization/saved?id=${encoded_visualization_id}&embedded=True"> + </iframe> + </div> +</%def> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org