libs/cbi: Add cross-linking capabilities
[project/luci.git] / libs / cbi / luasrc / view / cbi / tblsection.htm
index 36304081bdf59552900f8f6fb32a6d177df7a785..a397762f46699c5dd1ce9accb4ed80deb6f5c765 100644 (file)
@@ -34,7 +34,11 @@ end
                                <th>&nbsp;</th>
                        <%- end -%>
                        <%- for i, k in pairs(self.children) do if not k.optional then -%>
-                               <th class="cbi-section-table-cell"><%=k.title%></th>
+                               <th class="cbi-section-table-cell">
+                               <%- if k.titleref then -%><a class="cbi-title-ref" href="<%=k.titleref%>"><%- end -%>
+                                       <%-=k.title-%>
+                               <%- if k.titleref then -%></a><%- end -%>
+                               </th>
                        <%- count = count + 1; end; end; if self.extedit or self.addremove then -%>
                                <th class="cbi-section-table-cell">&nbsp;</th>
                        <%- count = count + 1; end -%>