From c8426cfa3cce952dde8cdf2eb058d0c2fae4986d Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 21 Mar 2008 19:30:53 +0000 Subject: * ffluci.cbi: updates * ffluci.template: fixed a bug where different template scopes were not separated correctly * Added ffluci.dispatcher.cbi and ffluci.dispatcher.dynamic --- src/ffluci/view/cbi/tsection.htm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/ffluci/view/cbi/tsection.htm') diff --git a/src/ffluci/view/cbi/tsection.htm b/src/ffluci/view/cbi/tsection.htm index 8c7f0c1151..b613f6271f 100644 --- a/src/ffluci/view/cbi/tsection.htm +++ b/src/ffluci/view/cbi/tsection.htm @@ -2,20 +2,20 @@ local allsections = self.map:read() local sections = {} for k, v in pairs(allsections) do - if v[".type"] == sectiontype then + if v[".type"] == self.sectiontype then sections[k] = v end end %> -
-

<%=self.title%>

-
<%=self.description%>
+
+

<%=self.title%>

+
<%=self.description%>
<% for k, v in pairs(sections) do %> -
-<% for k, node in ipairs(self.children) do +
+<% for i, node in ipairs(self.children) do node.section = k - node:render(k) + node:render() end %> -
+
<% end %> -
+
-- cgit v1.2.3