From cb0718b9f7ca294d49dca050cc08e35134ceefa0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 6 Mar 2010 19:10:30 +0000 Subject: libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row titles --- libs/cbi/luasrc/view/cbi/tblsection.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index 698efc53c..022461067 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -69,7 +69,7 @@ end -%> <% if not self.anonymous then -%> -

<%=k%>

+

<%=(type(self.sectiontitle) == "function") and self:sectiontitle(section) or k%>

<%- end %> -- cgit v1.2.3