Add link to admin page to flowcell & library pages for logged in staff
[htsworkflow.git] / htsworkflow / frontend / templates / experiments / flowcell_header.html
1   <div class="flowcell_identity">
2   <h2>About this Flowcell</h2>
3   <b>Flowcell</b>: 
4     <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/>
5   <b>Run Date</b>:
6     <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ flowcell.run_date }}</span><br/>
7   <b>Type</b>: 
8     <span property="libns:flowcell_type">{{flowcell.flowcell_type}}</span><br/>
9   <b>Read Length</b>:
10     <span property="libns:read_length">{{flowcell.read_length}}</span><br/>
11   <b>Control Lane</b>:
12     <span property="libns:control_lane">{{flowcell.control_lane}}</span><br/>
13
14   <b>Notes</b>:
15     <pre property="libns:flowcell_notes">{{flowcell.notes}}</pre>
16   </div>