[2] | 1 | <%inherit file="/base.mako"/> |
---|
| 2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
| 3 | |
---|
| 4 | <% |
---|
| 5 | from galaxy.web.framework.helpers import time_ago |
---|
| 6 | from galaxy.web.controllers.library_common import get_containing_library_from_library_dataset |
---|
| 7 | %> |
---|
| 8 | |
---|
| 9 | %if message: |
---|
| 10 | ${render_msg( message, 'done' )} |
---|
| 11 | %endif |
---|
| 12 | |
---|
| 13 | <div class="toolForm"> |
---|
| 14 | <h3 align="center">Dataset Information</h3> |
---|
| 15 | <div class="toolFormBody"> |
---|
| 16 | <div class="form-row"> |
---|
| 17 | <label>Date uploaded:</label> |
---|
| 18 | ${time_ago( dataset.create_time )} |
---|
| 19 | <div style="clear: both"></div> |
---|
| 20 | </div> |
---|
| 21 | <div class="form-row"> |
---|
| 22 | <label>Last updated:</label> |
---|
| 23 | ${time_ago( dataset.update_time )} |
---|
| 24 | <div style="clear: both"></div> |
---|
| 25 | </div> |
---|
| 26 | <div class="form-row"> |
---|
| 27 | <label>File size:</label> |
---|
| 28 | ${dataset.get_size( nice_size=True )} |
---|
| 29 | <div style="clear: both"></div> |
---|
| 30 | </div> |
---|
| 31 | <div class="form-row"> |
---|
| 32 | <label>State:</label> |
---|
| 33 | ${dataset.state} |
---|
| 34 | <div style="clear: both"></div> |
---|
| 35 | </div> |
---|
| 36 | </div> |
---|
| 37 | </div> |
---|
| 38 | %if associated_hdas: |
---|
| 39 | <p/> |
---|
| 40 | <b>Active (undeleted) history items that use this library dataset's disk file</b> |
---|
| 41 | <div class="toolForm"> |
---|
| 42 | <table class="grid"> |
---|
| 43 | <thead> |
---|
| 44 | <tr> |
---|
| 45 | <th>History</th> |
---|
| 46 | <th>History Item</th> |
---|
| 47 | <th>Last Updated</th> |
---|
| 48 | <th>User</th> |
---|
| 49 | </tr> |
---|
| 50 | </thead> |
---|
| 51 | %for hda in associated_hdas: |
---|
| 52 | <tr> |
---|
| 53 | <td> |
---|
| 54 | %if hda.history: |
---|
| 55 | ${hda.history.get_display_name()} |
---|
| 56 | %else: |
---|
| 57 | no history |
---|
| 58 | %endif |
---|
| 59 | </td> |
---|
| 60 | <td>${hda.get_display_name()}</td> |
---|
| 61 | <td>${time_ago( hda.update_time )}</td> |
---|
| 62 | <td> |
---|
| 63 | %if hda.history and hda.history.user: |
---|
| 64 | ${hda.history.user.email} |
---|
| 65 | %else: |
---|
| 66 | anonymous |
---|
| 67 | %endif |
---|
| 68 | </td> |
---|
| 69 | </tr> |
---|
| 70 | %endfor |
---|
| 71 | </table> |
---|
| 72 | </div> |
---|
| 73 | <p/> |
---|
| 74 | %endif |
---|
| 75 | %if associated_lddas: |
---|
| 76 | <p/> |
---|
| 77 | <b>Other active (undeleted) library datasets that use this library dataset's disk file</b> |
---|
| 78 | <div class="toolForm"> |
---|
| 79 | <table class="grid"> |
---|
| 80 | <thead> |
---|
| 81 | <tr> |
---|
| 82 | <th>Library</th> |
---|
| 83 | <th>Folder</th> |
---|
| 84 | <th>Library Dataset</th> |
---|
| 85 | <th>Last Updated</th> |
---|
| 86 | <th>Uploaded By</th> |
---|
| 87 | </tr> |
---|
| 88 | </thead> |
---|
| 89 | %for ldda in associated_lddas: |
---|
| 90 | <% containing_library = get_containing_library_from_library_dataset( trans, ldda.library_dataset ) %> |
---|
| 91 | <tr> |
---|
| 92 | <td> |
---|
| 93 | <% |
---|
| 94 | if containing_library: |
---|
| 95 | library_display_name = containing_library.get_display_name() |
---|
| 96 | else: |
---|
| 97 | library_display_name = 'no library' |
---|
| 98 | %> |
---|
| 99 | ${library_display_name} |
---|
| 100 | </td> |
---|
| 101 | <td> |
---|
| 102 | <% |
---|
| 103 | library_dataset = ldda.library_dataset |
---|
| 104 | folder = library_dataset.folder |
---|
| 105 | folder_display_name = folder.get_display_name() |
---|
| 106 | if folder_display_name == library_display_name: |
---|
| 107 | folder_display_name = 'library root' |
---|
| 108 | %> |
---|
| 109 | ${folder_display_name} |
---|
| 110 | </td> |
---|
| 111 | <td>${ldda.get_display_name()}</td> |
---|
| 112 | <td>${time_ago( ldda.update_time )}</td> |
---|
| 113 | <td> |
---|
| 114 | %if ldda.user: |
---|
| 115 | ${ldda.user.email} |
---|
| 116 | %else: |
---|
| 117 | anonymous |
---|
| 118 | %endif |
---|
| 119 | </td> |
---|
| 120 | </tr> |
---|
| 121 | %endfor |
---|
| 122 | </table> |
---|
| 123 | </div> |
---|
| 124 | <p/> |
---|
| 125 | %endif |
---|