mirror of
https://github.com/openwrt/luci.git
synced 2026-06-20 23:01:28 +04:00
libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row titles
This commit is contained in:
@@ -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 %>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user