diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-06 19:10:30 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-06 19:10:30 +0000 |
commit | cb0718b9f7ca294d49dca050cc08e35134ceefa0 (patch) | |
tree | 3c5ee768c9d9978a123a4324b9cd00bcda628e3a /libs | |
parent | bf8a7d61cfbd899fbb679c37143d6301e7ed2881 (diff) |
libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row titles
Diffstat (limited to 'libs')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/tblsection.htm | 2 |
1 files changed, 1 insertions, 1 deletions
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 -%> <tr class="cbi-section-table-row<% if self.extedit or self.rowcolors then %> cbi-rowstyle-<%=rowstyle()%><% end %>" id="cbi-<%=self.config%>-<%=section%>"> <% if not self.anonymous then -%> - <th><h3><%=k%></h3></th> + <th><h3><%=(type(self.sectiontitle) == "function") and self:sectiontitle(section) or k%></h3></th> <%- end %> |