-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.tt
43 lines (39 loc) · 1.02 KB
/
view.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[%- META title="View Plate"; META tab_name = "Browse" %]
<div class="page-header">
<h1>Plate <small>[% plate.name %]</small></h1>
</div>
<table class="table">
<thead>
<tr>
<th>Plate Name</th>
<th>Plate Type</th>
<th>Description</th>
<th>Created By</th>
<th>Created At</th>
</tr>
</thead>
<tbody>
<tr>
<td>[% plate.name %]</td>
<td>[% plate.type.id %] ([% plate.type.description %])</td>
<td>[% plate.description %]</td>
<td>[% plate.created_by.name %]</td>
<td>[% plate.created_at.ymd %]</td>
</tr>
</tbody>
</table>
<h2>Comments</h2>
[% IF plate.plate_comments.size %]
<dl>
[% FOR comment IN plate.plate_comments %]
<dt>[% comment.created_by.name %], [% comment.created_at.ymd %]</dt>
<dd>
<p>[% comment.comment_text %]</p>
</dd>
[% END %]
</dl>
[% ELSE %]
<p><em>No comments for this plate.</em></p>
[% END %]
<h2>Wells</h2>
<a class="btn btn-primary" href="[% well_report_uri %]"><i class="icon-list icon-white"></i> Well Details</a>