From: Jo-Philipp Wich Date: Sat, 6 Mar 2010 19:10:30 +0000 (+0000) Subject: libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row... X-Git-Tag: 0.10.0~850 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cb0718b9f7ca294d49dca050cc08e35134ceefa0;p=oweals%2Fluci.git libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row titles --- 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 %>