1 | <%inherit file="/base.mako"/> |
---|
2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
3 | |
---|
4 | %if message: |
---|
5 | ${render_msg( message, status )} |
---|
6 | %endif |
---|
7 | |
---|
8 | <h2>Datasets of Sample "${sample.name}"</h2> |
---|
9 | |
---|
10 | <ul class="manage-table-actions"> |
---|
11 | <li> |
---|
12 | <a class="action-button" href="${h.url_for( controller='requests_common', action='view_dataset_transfer', cntrller=cntrller, sample_id=trans.security.encode_id( sample.id ) )}">Refresh</a> |
---|
13 | </li> |
---|
14 | <li> |
---|
15 | <a class="action-button" href="${h.url_for( controller='library_common', action='browse_library', cntrller=cntrller, id=trans.security.encode_id( sample.library.id ) )}">${sample.library.name} Data Library</a> |
---|
16 | </li> |
---|
17 | <li> |
---|
18 | <a class="action-button" href="${h.url_for( controller='requests_common', action='manage_request', cntrller=cntrller, id=trans.security.encode_id( sample.request.id ) )}">Browse this request</a> |
---|
19 | </li> |
---|
20 | </ul> |
---|
21 | |
---|
22 | %if dataset_files: |
---|
23 | <div class="form-row"> |
---|
24 | <table class="grid"> |
---|
25 | <thead> |
---|
26 | <tr> |
---|
27 | <th>Name</th> |
---|
28 | <th>Size</th> |
---|
29 | <th>Status</th> |
---|
30 | </tr> |
---|
31 | <thead> |
---|
32 | <tbody> |
---|
33 | %for dataset_file in dataset_files: |
---|
34 | <tr> |
---|
35 | <td>${dataset_file.name}</td> |
---|
36 | <td>${dataset_file.size}</td> |
---|
37 | <td>${dataset_file.status}</td> |
---|
38 | </tr> |
---|
39 | %endfor |
---|
40 | </tbody> |
---|
41 | </table> |
---|
42 | </div> |
---|
43 | %else: |
---|
44 | <div class="form-row"> |
---|
45 | There are no datasets associated with this sample. |
---|
46 | </div> |
---|
47 | %endif |
---|