Update templates to consistently use {% static %} instead of hard coding paths
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_detail.html
1 {% extends "base_site.html" %}
2 {% load staticfiles %}
3 {% load humanize i18n %}
4 {% block extrahead %}
5     <!-- App Stuff -->
6     <link type="text/css" rel="stylesheet" href="{% static "css/app.css" %}" />
7     <script type="text/javascript" src="{% static "js/jquery.min.js" %}"></script>
8
9     {% block additional_javascript %}
10     {% endblock %}
11 {% endblock %}
12
13 {% block content %}
14 <div>
15   {% include "experiments/flowcell_header.html" %}
16   <div class="htswdetail" typeof="libns:IlluminaFlowcell" resource="{{flowcell.get_absolute_url}}">
17     <h2>Lanes</h2>
18     <table>
19       <thead>
20        <tr>
21          <td>Lane</td>
22          <td>Library ID</td>
23          <td>Library Name</td>
24          <td>Species</td>
25          <td>Comment</td>
26        </tr>
27       </thead>
28       <tbody>
29       {% for lane in lanes %}
30         <tr>
31           <td rel="libns:has_lane">
32             <a href="{{lane.get_absolute_url}}" typeof="libns:IlluminaLane">
33               <span property="libns:lane_number">{{lane.lane_number}}</span>
34             </a>
35           </td>
36           <td rel="libns:library"
37               about="{{lane.get_absolute_url}}"
38               resource="{{lane.library.get_absolute_url}}">
39             <a typeof="libns:Library" href="{{lane.library.get_absolute_url}}">
40               <span property="libns:library_id"
41                     >{{lane.library.id}}</span></a>
42               {% if user.is_staff %}
43               <a href="{{lane.library.get_admin_url}}">
44                   <img class="icon_button"
45                        src="{% static "admin/img/icon_changelink.gif" %}"/>
46               </a>{% endif %}
47           </td>
48           <td>
49             <a href="{{lane.library.get_absolute_url}}">
50               <span property="libns:name"
51                     about="{{lane.library.get_absolute_url}}"
52                     >{{lane.library.library_name}}</span>
53             </a>
54           </td>
55           <td about="{{lane.library.get_absolute_url}}" rel="libns:species">
56             <a href="{{lane.library.library_species.get_absolute_url}}"
57                typeof="libns:Species">
58               <span property="libns:species_name">{{ lane.library.library_species.scientific_name }}</span></a>
59           </td>
60           <td about="{{lane.get_absolute_url}}">
61             <span property="libns:comment">{{lane.comment}}</span>
62           </td>
63         </tr>
64       {% endfor %}
65       </tbody>
66     </table>
67     <div class="htsw_flowcell_ivc">
68     {% for run in flowcell.datarun_set.all %}
69        <h2>Run {{ run.runfolder_name }}</h2>
70        {% if run.lane_files %}
71        <table>
72          <thead>
73            <tr>
74              <td>Lane</td>
75              <td>IVC All</td>
76              <td>IVC Call</td>
77              <td>IVC Percent Base</td>
78              <td>IVC Percent Base All</td>
79              <td>IVC Percent Base Called</td>
80            </tr>
81          </thead>
82          <tbody>
83             {% for lane_id, lane_file_set in run.lane_files.items %}
84             {% if lane_file_set.ivc_all %}
85             <tr>
86               <td>{{ lane_id }}</td>
87               <td>
88                 <a href="{{ lane_file_set.ivc_all.get_absolute_url }}">
89                 <img height="84" width="126" alt="Lane {{lane_id }} IVC All"
90                      src="{{ lane_file_set.ivc_all.get_absolute_url }}"/></a>
91               </td>
92               <td>
93                 <a href="{{ lane_file_set.ivc_call.get_absolute_url }}">
94                 <img height="84" width="126" alt="Lane {{lane_id }} IVC Call"
95                      src="{{ lane_file_set.ivc_call.get_absolute_url }}"/>
96                 </a>
97               </td>
98               <td>
99                 <a href="{{ lane_file_set.ivc_percent_base.get_absolute_url }}">
100                 <img height="84" width="126" alt="Lane {{lane_id }} IVC % Base"
101                      src="{{ lane_file_set.ivc_percent_base.get_absolute_url }}"/>
102                 </a>
103               </td>
104               <td>
105                 <a href="{{ lane_file_set.ivc_percent_all.get_absolute_url }}">
106                 <img height="84" width="126" alt="Lane {{lane_id }} IVC % Base All"
107                      src="{{ lane_file_set.ivc_percent_all.get_absolute_url }}"/>
108                 </a>
109               </td>
110               <td>
111                 <a href="{{ lane_file_set.ivc_percent_call.get_absolute_url }}">
112                 <img height="84" width="126"
113                      alt="Lane {{lane_id }} IVC % Base Called"
114                      src="{{ lane_file_set.ivc_percent_call.get_absolute_url }}"/>
115                 </a>
116               </td>
117             </tr>
118             {% endif %}
119             {% endfor %}
120          </tbody>
121        </table>
122        {% endif %}
123     {% endfor %}
124     </div>
125   </div>
126 </div>
127 <!-- end flowcell_detail -->
128 {% endblock %}