5ec9afe8a5944581a03a568b94ddc998b5abe60b
[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   {% include "experiments/flowcell_header.html" %}
15   <div class="htswdetail">
16     <h2>Lanes</h2>
17     <table>
18       <thead>
19        <tr>
20          <td>Lane</td>
21          <td>Library ID</td>
22          <td>Library Name</td>
23          <td>Species</td>
24          <td>Comment</td>
25        </tr>
26       </thead>
27       <tbody>
28       {% for lane in lanes %}
29         <tr rel="libns:has_lane" resource="{{lane.get_absolute_url}}" >
30           <td><a href="{{lane.get_absolute_url}}"> 
31               <span property="libns:lane_number">{{lane.lane_number}}</span></a></td>
32           <td><a href="{{lane.library.get_absolute_url}}" 
33                  rel="libns:library"><span property="libns:library_id"
34               >{{lane.library.id}}</span></a></td>
35           <td><a href="{{lane.library.get_absolute_url}}" rel="libns:library"><span property="libns:name">{{lane.library.library_name}}</span></a></td>
36           <td><a href="{{lane.library.library_species.get_absolute_url}}" rel="libns:species">
37               <span property="libns:species_name">{{ lane.library.library_species.scientific_name }}</span></a></td>
38           <td><span property="libns:comment">{{lane.comment}}</span></td>
39         </tr>
40       {% endfor %}
41       </tbody>
42     </table>
43     </div>
44     <div class="htsw_flowcell_ivc">
45     {% for run in flowcell.datarun_set.all %}
46        <h2>Run {{ run.runfolder_name }}</h2>
47        <table>
48          <thead>
49            <tr>
50              <td>Lane</td>
51              <td>IVC All</td>
52              <td>IVC Call</td>
53              <td>IVC Percent Base</td>
54              <td>IVC Percent Base All</td>
55              <td>IVC Percent Base Called</td>
56          </thead>
57          <tbody>
58             {% for lane_id, lane_file_set in run.lane_files.items %}
59             {% if lane_file_set.ivc_all %}
60             <tr>
61               <td>{{ lane_id }}</td>
62               <td>
63                 <a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
64                 <img height="84" width="126" src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>
65               </td>
66               <td>
67                 <a href="{{ lane_file_set.ivc_call.get_absolute_url }}">
68                 <img height="84" width="126" src="{{ lane_file_set.ivc_call.get_absolute_url }}"/>
69                 </a>
70               </td>
71               <td>
72                 <a href="{{ lane_file_set.ivc_percent_base.get_absolute_url }}">
73                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_base.get_absolute_url }}"/>
74                 </a>
75               </td>
76               <td>
77                 <a href="{{ lane_file_set.ivc_percent_all.get_absolute_url }}">
78                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_all.get_absolute_url }}"/>
79                 </a>
80               </td>
81               <td>
82                 <a href="{{ lane_file_set.ivc_percent_call.get_absolute_url }}">
83                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_call.get_absolute_url }}"/>
84                 </a>
85               </td>
86             </tr>
87             {% endif %}
88             {% endfor %} 
89          </tbody>
90        </table>
91     {% endfor %}
92     </div>
93 </div>  
94 {% endblock %}