## ## Base file for generating HTML for embedded objects. ## ## parameters: item, item_data ## <%namespace file="/display_common.mako" import="*" /> ## HTML structure.
${self.render_title( item )}
${self.render_summary_content( item, item_data )}
## Render item links. <%def name="render_item_links( item )"> <% item_display_name = get_class_display_name( item.__class__ ).lower() item_controller = "/%s" % get_controller_name( item ) item_user = get_item_user( item ) item_slug = get_item_slug( item ) display_href = h.url_for( controller=item_controller, action='display_by_username_and_slug', username=item_user.username, slug=item_slug ) %> ## Links for importing and viewing an item. <%def name="render_title( item )"> <% item_display_name = get_class_display_name( item.__class__ ).lower() item_controller = "/%s" % get_controller_name( item ) item_user = get_item_user( item ) item_slug = get_item_slug( item ) display_href = h.url_for( controller=item_controller, action='display_by_username_and_slug', username=item_user.username, slug=item_slug ) %>
${self.render_item_links( item )}

Galaxy ${get_class_display_name( item.__class__ )} | ${get_item_name( item )}

%if hasattr( item, "annotation") and item.annotation:
${item.annotation}
%endif ## Use a hidden var to store the ajax URL for getting an item's content. ## Methods to override to render summary content. <%def name="render_summary_content( item, item_data )">