%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <%namespace file="/library/common/common.mako" import="render_template_fields" /> <% from galaxy import util from galaxy.web.controllers.library_common import branch_deleted, get_containing_library_from_library_dataset from galaxy.web.framework.helpers import time_ago if ldda == ldda.library_dataset.library_dataset_dataset_association: current_version = True else: current_version = False if ldda.user: uploaded_by = ldda.user.email else: uploaded_by = 'anonymous' if trans.user_is_admin() and cntrller == 'library_admin': can_modify = can_manage = True elif cntrller in [ 'library', 'requests' ]: can_modify = trans.app.security_agent.can_modify_library_item( current_user_roles, ldda.library_dataset ) can_manage = trans.app.security_agent.can_manage_library_item( current_user_roles, ldda.library_dataset ) else: can_modify = can_manage = False %> <%def name="javascripts()"> ${parent.javascripts()} %def> %if current_version: This is the latest version of this library dataset %else: This is an expired version of this library dataset %endif
%if message: ${render_msg( message, status )} %endif${ldda.message}
${ldda.display_peek()}
History | History Item | Last Updated | User |
---|---|---|---|
%if hda.history: ${hda.history.get_display_name()} %else: no history %endif | ${hda.get_display_name()} | ${time_ago( hda.update_time )} | %if hda.history and hda.history.user: ${hda.history.user.email} %else: anonymous %endif |
Library | Library Folder | Library Dataset | Last Updated | User |
---|---|---|---|---|
<% if containing_library: library_display_name = containing_library.get_display_name() else: library_display_name = 'no library' %> %if containing_library: ${library_display_name} %else: ${library_display_name} %endif | <% library_dataset = copied_ldda.library_dataset folder = library_dataset.folder folder_display_name = folder.get_display_name() if folder_display_name == library_display_name: folder_display_name = 'library root' %> ${folder_display_name} ${copied_ldda.library_dataset.folder.get_display_name()} | ${copied_ldda.get_display_name()} | ${time_ago( copied_ldda.update_time )} | %if copied_ldda.user: ${copied_ldda.user.email} %else: anonymous %endif |