d958bf1084ad18e6e246d392f84253e46db00e00
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_detail.html
1 {% extends "base_site.html" %}
2 {% load 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>
14   {% include "experiments/flowcell_header.html" %}
15   <div class="htswdetail" typeof="libns:IlluminaFlowcell" resource="{{flowcell.get_absolute_url}}">
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>
30           <td rel="libns:has_lane">
31             <a href="{{lane.get_absolute_url}}" typeof="libns:IlluminaLane">
32               <span property="libns:lane_number">{{lane.lane_number}}</span>
33             </a>
34           </td>
35           <td rel="libns:library"
36               about="{{lane.get_absolute_url}}"
37               resource="{{lane.library.get_absolute_url}}">
38             <a typeof="libns:Library" href="{{lane.library.get_absolute_url}}">
39               <span property="libns:library_id"
40                     >{{lane.library.id}}</span></a>
41               {% if user.is_staff %}
42               <a href="{{lane.library.get_admin_url}}">
43                   <img class="icon_button"
44                        src="/media/img/admin/icon_changelink.gif"/>
45               </a>{% endif %}
46           </td>
47           <td>
48             <a href="{{lane.library.get_absolute_url}}">
49               <span property="libns:name"
50                     about="{{lane.library.get_absolute_url}}"
51                     >{{lane.library.library_name}}</span>
52             </a>
53           </td>
54           <td about="{{lane.library.get_absolute_url}}" rel="libns:species">
55             <a href="{{lane.library.library_species.get_absolute_url}}"
56                typeof="libns:Species">
57               <span property="libns:species_name">{{ lane.library.library_species.scientific_name }}</span></a>
58           </td>
59           <td about="{{lane.get_absolute_url}}">
60             <span property="libns:comment">{{lane.comment}}</span>
61           </td>
62         </tr>
63       {% endfor %}
64       </tbody>
65     </table>
66     <div class="htsw_flowcell_ivc">
67     {% for run in flowcell.datarun_set.all %}
68        <h2>Run {{ run.runfolder_name }}</h2>
69        {% if run.lane_files %}
70        <table>
71          <thead>
72            <tr>
73              <td>Lane</td>
74              <td>IVC All</td>
75              <td>IVC Call</td>
76              <td>IVC Percent Base</td>
77              <td>IVC Percent Base All</td>
78              <td>IVC Percent Base Called</td>
79            </tr>
80          </thead>
81          <tbody>
82             {% for lane_id, lane_file_set in run.lane_files.items %}
83             {% if lane_file_set.ivc_all %}
84             <tr>
85               <td>{{ lane_id }}</td>
86               <td>
87                 <a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
88                 <img height="84" width="126" alt="Lane {{lane_id }} IVC All"
89                      src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>
90               </td>
91               <td>
92                 <a href="{{ lane_file_set.ivc_call.get_absolute_url }}">
93                 <img height="84" width="126" alt="Lane {{lane_id }} IVC Call"
94                      src="{{ lane_file_set.ivc_call.get_absolute_url }}"/>
95                 </a>
96               </td>
97               <td>
98                 <a href="{{ lane_file_set.ivc_percent_base.get_absolute_url }}">
99                 <img height="84" width="126" alt="Lane {{lane_id }} IVC % Base"
100                      src="{{ lane_file_set.ivc_percent_base.get_absolute_url }}"/>
101                 </a>
102               </td>
103               <td>
104                 <a href="{{ lane_file_set.ivc_percent_all.get_absolute_url }}">
105                 <img height="84" width="126" alt="Lane {{lane_id }} IVC % Base All"
106                      src="{{ lane_file_set.ivc_percent_all.get_absolute_url }}"/>
107                 </a>
108               </td>
109               <td>
110                 <a href="{{ lane_file_set.ivc_percent_call.get_absolute_url }}">
111                 <img height="84" width="126"
112                      alt="Lane {{lane_id }} IVC % Base Called"
113                      src="{{ lane_file_set.ivc_percent_call.get_absolute_url }}"/>
114                 </a>
115               </td>
116             </tr>
117             {% endif %}
118             {% endfor %}
119          </tbody>
120        </table>
121        {% endif %}
122     {% endfor %}
123     </div>
124   </div>
125 </div>
126 <!-- end flowcell_detail -->
127 {% endblock %}