Update templates to consistently use {% static %} instead of hard coding paths
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_header.html
index 458619b93efe12def2f0d09850177f40baf78545..f0cb470102ce3932bbfbe17fbec315a51f152202 100644 (file)
@@ -1,10 +1,12 @@
-  <div class="flowcell_identity">
+{% load staticfiles %}
+<div class="flowcell_identity" typeof="libns:IlluminaFlowcell" resource="{{flowcell.get_absolute_url}}">
   <h2>About this Flowcell</h2>
   <b>Flowcell</b>:
-    <a href="{{flowcell.get_absolute_url}}" property="libns:flowcell_id">{{flowcell.flowcell_id}}</a>{% if user.is_staff %}<a href="{{flowcell.get_admin_url}}"><img class="icon_button" src="/media/img/admin/icon_changelink.gif" alt="Edit"/></a>{% endif%}
-  <br property="rdf:type" content="libns:illumina_flowcell"/>
-  <div rel="libns:sequenced_by"
-       resource="{{flowcell.sequencer.get_absolute_url}}">
+    <a href="{{flowcell.get_absolute_url}}"><span property="libns:flowcell_id">{{flowcell.flowcell_id}}</span></a>{% if user.is_staff %}<a href="{{flowcell.get_admin_url}}"><img class="icon_button" src="{% static "admin/img/icon_changelink.gif" %}" alt="Edit"/></a>{% endif%}
+  <br/>
+  <div rel="libns:sequenced_by">
+  <div typeof="libns:Sequencer"
+       about="{{flowcell.sequencer.get_absolute_url}}">
   <b>Instrument</b>:
     <span property="libns:sequencer_name">{{ flowcell.sequencer.name }}</span>
     {% if flowcell.sequencer.instrument_name %}
     <span property="libns:sequencer_model">{{flowcell.sequencer.model}}</span>
     <br/>
   </div>
+  </div>
+  {% for datarun in flowcell.datarun_set.all %}
+  <b>Image Analysis</b>:
+    <span property="libns:image_software">{{datarun.image_software}}</span>
+    <span property="libns:image_version">{{datarun.image_version}}</span><br/>
+  <b>Base Caller</b>:
+    <span property="libns:basecall_software">{{datarun.basecall_software}}</span>
+    <span property="libns:basecall_version">{{datarun.basecall_version}}</span><br/>
+  <b>Alignment</b>:
+    <span property="libns:alignment_software">{{datarun.alignment_software}}</span>
+    <span property="libns:alignment_version">{{datarun.alignment_version}}</span><br/>
+  {% endfor %}
   <b>Run Date</b>:
     <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ flowcell.run_date }}</span><br/>
   <b>Type</b>:
     <span property="libns:flowcell_type">{{flowcell.flowcell_type}}</span><br/>
   <b>Read Length</b>:
-    <span property="libns:read_length" datatype="xsd:decimal">{{flowcell.read_length}}</span><br/>
+    <span property="libns:read_length" datatype="xsd:integer">{{flowcell.read_length}}</span><br/>
   <b>Control Lane</b>:
     <span property="libns:control_lane">{{flowcell.control_lane}}</span><br/>
 
   <b>Notes</b>:
     <pre property="libns:flowcell_notes">{{flowcell.notes}}</pre>
 </div>
+ </div>