Start supporting multiple libraries per lane, as needed for the HiSeq
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_detail.html
1 {% extends "base_site.html" %}
2 {% load adminmedia humanize i18n %}
3 {% block extrahead %}
4     <!-- App Stuff -->
5     <link type="text/css" rel="stylesheet" href="/static/css/app.css" />
6     <script type="text/javascript" src="/static/js/jquery.min.js"></script>
7     
8     {% block additional_javascript %}
9     {% endblock %}
10 {% endblock %}
11
12 {% block content %}
13 <div id="flowcell_detail">
14   <h2>About this Flowcell</h2>
15   <b>Flowcell</b>: 
16     <a href="{{flowcell.get_absolute_url}}" property="libns:flowcell_id">{{flowcell.flowcell_id}}</a><br/>
17   <b>Run Date</b>:
18     <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ flowcell.run_date }}</span><br/>
19   <b>Type</b>: 
20     <span property="libns:flowcell_type">{{flowcell.flowcell_type}}</span><br/>
21   <b>Read Length</b>:
22     <span property="libns:read_length">{{flowcell.read_length}}</span><br/>
23   <b>Control Lane</b>:
24     <span property="libns:control_lane">{{flowcell.control_lane}}</span><br/>
25
26   <b>Notes</b>:
27     <pre property="libns:flowcell_notes">{{flowcell.notes}}</pre>
28   <div class="htswdetail">
29     <h2>Lanes</h2>
30     <table>
31       <thead>
32        <tr>
33          <td>Lane</td>
34          <td>Library ID</td>
35          <td>Library Name</td>
36          <td>Species</td>
37          <td>Comment</td>
38        </tr>
39       </thead>
40       <tbody>
41       {% for lane in lanes %}
42         <tr rel="libns:has_lane" resource="{{lane.get_absolute_url}}" >
43           <td><a href="{{lane.get_absolute_url}}"> 
44               <span property="libns:lane_number">{{lane.lane_number}}</span></a></td>
45           <td><a href="{{lane.library.get_absolute_url}}" 
46                  rel="libns:library"><span property="libns:library_id"
47               >{{lane.library.id}}</span></a></td>
48           <td><a href="{{lane.library.get_absolute_url}}" rel="libns:library"><span property="libns:name">{{lane.library.library_name}}</span></a></td>
49           <td><a href="{{lane.library.library_species.get_absolute_url}}" rel="libns:species">
50               <span property="libns:species_name">{{ lane.library.library_species.scientific_name }}</span></a></td>
51           <td><span property="libns:comment">{{lane.comment}}</span></td>
52         </tr>
53       {% endfor %}
54       </tbody>
55     </table>
56     </div>
57     <div class="htsw_flowcell_ivc">
58     {% for run in flowcell.datarun_set.all %}
59        <h2>Run {{ run.runfolder_name }}</h2>
60        <table>
61          <thead>
62            <tr>
63              <td>Lane</td>
64              <td>IVC All</td>
65              <td>IVC Call</td>
66              <td>IVC Percent Base</td>
67              <td>IVC Percent Base All</td>
68              <td>IVC Percent Base Called</td>
69          </thead>
70          <tbody>
71             {% for lane_id, lane_file_set in run.lane_files.items %}
72             {% if lane_file_set.ivc_all %}
73             <tr>
74               <td>{{ lane_id }}</td>
75               <td>
76                 <a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
77                 <img height="84" width="126" src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>
78               </td>
79               <td>
80                 <a href="{{ lane_file_set.ivc_call.get_absolute_url }}">
81                 <img height="84" width="126" src="{{ lane_file_set.ivc_call.get_absolute_url }}"/>
82                 </a>
83               </td>
84               <td>
85                 <a href="{{ lane_file_set.ivc_percent_base.get_absolute_url }}">
86                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_base.get_absolute_url }}"/>
87                 </a>
88               </td>
89               <td>
90                 <a href="{{ lane_file_set.ivc_percent_all.get_absolute_url }}">
91                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_all.get_absolute_url }}"/>
92                 </a>
93               </td>
94               <td>
95                 <a href="{{ lane_file_set.ivc_percent_call.get_absolute_url }}">
96                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_call.get_absolute_url }}"/>
97                 </a>
98               </td>
99             </tr>
100             {% endif %}
101             {% endfor %} 
102          </tbody>
103        </table>
104     {% endfor %}
105     </div>
106 </div>  
107 {% endblock %}