diff --git a/templates/webapps/galaxy/history/display_structured.mako b/templates/webapps/galaxy/history/display_structured.mako index cf73f97d2bd..f43fbbaa40e 100644 --- a/templates/webapps/galaxy/history/display_structured.mako +++ b/templates/webapps/galaxy/history/display_structured.mako @@ -9,7 +9,7 @@ body { padding: 5px; } - body > .workflow, body > .toolForm { + body > .workflow, body > .toolForm, body > .copied-from { /*width : 80%;*/ margin-bottom : 8px; /*margin-left : auto;*/ @@ -95,6 +95,18 @@ float: right; } + .copied-from { + border: 1px solid lightgrey; + border-width: 1px 1px 0px 1px; + } + .copied-from .header { + border-bottom: 1px solid lightgrey; + padding: 5px; + } + .copied-from .header .bold, .copied-from .header a { + color: #888; + } + .dataset.hda { min-height : 37px; border-width: 0px 0px 1px 0px; @@ -113,6 +125,7 @@ %def> +## ---------------------------------------------------------------------------- <%def name="javascripts()"> <% self.js_app = 'display-structured' @@ -174,12 +187,72 @@ elif entity_name == "WorkflowInvocation": %> %def> -<%def name="render_item_hda( hda, children )"> +## ---------------------------------------------------------------------------- hda +<%def name="render_item_hda( hda, children )"> ## render hdas as a id'd stub for js to fill later + + %if hda.copied_from_history_dataset_association: + ${ render_hda_copied_from_history( hda, children ) } + + %elif hda.copied_from_library_dataset_dataset_association: + ${ render_hda_copied_from_library( hda, children ) } + + %else: <% id = trans.security.encode_id( hda.id ) %>
+ %endif %def> +<%def name="render_hda_copied_from_history( hda, children )"> +## wrap an hda in info about the history from where it was copied + <% id = trans.security.encode_id( hda.id ) %> + <% history_id = trans.security.encode_id( hda.copied_from_history_dataset_association.history_id ) %> +