## ## Base file for generating HTML for embedded objects. ## ## parameters: item, item_data ## <%namespace file="/display_common.mako" import="*" /> ## HTML structure.
## 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> <%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 ) %>