forked from ring-lang/ring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresources.template
48 lines (36 loc) · 1007 Bytes
/
resources.template
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
44
45
<% eval(read("resources.data")) %>
<div id="resources" class="panel-group">
<div class="panel panel-default">
<div class="panel-heading"><h4>Resources <span class="badge"><%= len(aResources) %></span></h4></div>
<div class="panel-body">
<% for aGroup in aResources %>
<div class="panel panel-primary" id="samples">
<div class="panel-heading"><%= aGroup[1] %> <span class="badge"><%= len(aGroup[2]) %></span></div>
<div class="panel-body">
<table class="table table-striped">
<% if len(aGroup[2][1]) = 2 %>
<thead>
<tr>
<th width="80%">Description </th>
<th width="20%">Photo </th>
</tr>
</thead>
<% ok %>
<tbody>
<% for aItem in aGroup[2] %>
<tr>
<% for aData in aItem %>
<th>
<%= aData %>
</th>
<% next %>
</tr>
<% next %>
</tbody>
</table>
</div>
</div>
<% next %>
</div>
</div>
</div>