5ce9fa2a067403650cc0e1ed0f2dc3d05bd98e82
[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" datatype="xsd:decimal">{{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>
35               {% if user.is_staff %}
36               <a href="{{lane.library.get_admin_url}}">
37                   <img class="icon_button"
38                        src="/media/img/admin/icon_changelink.gif"/>
39               </a>{% endif %}
40           </td>
41           <td><a href="{{lane.library.get_absolute_url}}" rel="libns:library"><span property="libns:name">{{lane.library.library_name}}</span></a></td>
42           <td><a href="{{lane.library.library_species.get_absolute_url}}" rel="libns:species">
43               <span property="libns:species_name">{{ lane.library.library_species.scientific_name }}</span></a></td>
44           <td><span property="libns:comment">{{lane.comment}}</span></td>
45         </tr>
46       {% endfor %}
47       </tbody>
48     </table>
49     </div>
50     <div class="htsw_flowcell_ivc">
51     {% for run in flowcell.datarun_set.all %}
52        <h2>Run {{ run.runfolder_name }}</h2>
53        <table>
54          <thead>
55            <tr>
56              <td>Lane</td>
57              <td>IVC All</td>
58              <td>IVC Call</td>
59              <td>IVC Percent Base</td>
60              <td>IVC Percent Base All</td>
61              <td>IVC Percent Base Called</td>
62          </thead>
63          <tbody>
64             {% for lane_id, lane_file_set in run.lane_files.items %}
65             {% if lane_file_set.ivc_all %}
66             <tr>
67               <td>{{ lane_id }}</td>
68               <td>
69                 <a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
70                 <img height="84" width="126" src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>
71               </td>
72               <td>
73                 <a href="{{ lane_file_set.ivc_call.get_absolute_url }}">
74                 <img height="84" width="126" src="{{ lane_file_set.ivc_call.get_absolute_url }}"/>
75                 </a>
76               </td>
77               <td>
78                 <a href="{{ lane_file_set.ivc_percent_base.get_absolute_url }}">
79                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_base.get_absolute_url }}"/>
80                 </a>
81               </td>
82               <td>
83                 <a href="{{ lane_file_set.ivc_percent_all.get_absolute_url }}">
84                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_all.get_absolute_url }}"/>
85                 </a>
86               </td>
87               <td>
88                 <a href="{{ lane_file_set.ivc_percent_call.get_absolute_url }}">
89                 <img height="84" width="126" src="{{ lane_file_set.ivc_percent_call.get_absolute_url }}"/>
90                 </a>
91               </td>
92             </tr>
93             {% endif %}
94             {% endfor %}
95          </tbody>
96        </table>
97     {% endfor %}
98     </div>
99 </div>
100 {% endblock %}