blob: 420bfd14a8f816ba2591143087726ce6f0e28127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<%
local allsections = self.map:read()
local sections = {}
for k, v in pairs(allsections) do
if v[".type"] == sectiontype then
sections[k] = v
end
end
%>
<div class="cbi-tsection" id="cbi-<%=self.map.config%>-<%=self.sectiontype%>">
<h2><%=self.title%></h2>
<div class="cbi-tsection-descr"><%=self.description%></div>
<% for k, v in pairs(sections) do %>
<div class="cbi-tsection-node" id="cbi-<%=self.map.config%>-<%=k%>">
<% for k, node in ipairs(self.children) do
node.section = k
node:render(k)
end %>
</div>
<% end %>
</div>
|