source: trunk/grails-app/views/assaySample/show.gsp @ 7

Last change on this file since 7 was 7, checked in by robert@…, 9 years ago
  • Created tests for the synchronization and trash
  • Improved synchronizationservice and trash
  • Put authorization checks in several pages
File size: 1.8 KB
RevLine 
[4]1<h2>${assaySample.sample.name}</h2>
2
[7]3<ul>
4        <li><label>Study</label><span class="value">${assaySample.assay?.study?.name}</span></li>
5        <li><label>Assay</label><span class="value">${assaySample.assay?.name}</span></li>
6        <li><label>Sample</label><span class="value">${assaySample.sample?.name}</span></li>
7        <li><label>Run</label><span class="value">${assaySample.run?.name}</span></li>
8</ul>   
9
[4]10<h2>Details</h2>
11
12<ul>
13        <li><label>Tag sequence</label><span class="value">${assaySample.tagSequence}</span></li>
14        <li><label>Oligo number</label><span class="value">${assaySample.oligoNumber}</span></li>
15        <li><label># sequences</label><span class="value">${assaySample.numSequences() ?: '-'}</span></li>
16        <li><label>Average quality</label><span class="value">${assaySample.averageQuality() ?: '-'}</span></li>
17        <li><label># unique sequences</label><span class="value">${assaySample.numUniqueSequences ?: '-'}</span></li>
18</ul>
19
20<g:if test="${assaySample.sequenceData?.size()}">
21        <h2>Files</h2>
22        <table class="paginate">
23                <thead>
24                        <tr>
25                                <th nowrap>Sequence file</th>
26                                <th nowrap>Quality file</th>
27                                <th nowrap># sequences</th>
28                                <th class="nonsortable"></th>
29                        </tr>
30                </thead>                       
31                <tbody>
32                        <g:each in="${assaySample.sequenceData}" var="sequenceData">
33                                <tr>
34                                        <td><g:uploadedFile value="${sequenceData.sequenceFile}" /></td>
35                                        <td>
36                                                <g:if test="${sequenceData.qualityFile}">
37                                                        <g:uploadedFile value="${sequenceData.qualityFile}" />
38                                                </g:if>
39                                        </td>
40                                        <td>${sequenceData.numSequences}</td>
[7]41                                        <td class="button"><g:link onClick="return confirm( 'Are you sure you want to remove the selected files from this sample?' );" controller="fasta" action="deleteData" id="${sequenceData.id}" params="[entityType: entityType]"><img src="${fam.icon(name: 'delete')}" /></g:link></td>
[4]42                                </tr>
43                        </g:each>
44                </tbody>
45        </table>
46</g:if>
Note: See TracBrowser for help on using the repository browser.