diff options
-rw-r--r-- | libs/cbi/luasrc/view/cbi/full_valueheader.htm | 6 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/tblsection.htm | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/view/cbi/full_valueheader.htm b/libs/cbi/luasrc/view/cbi/full_valueheader.htm index 566e236ed..ce079ca57 100644 --- a/libs/cbi/luasrc/view/cbi/full_valueheader.htm +++ b/libs/cbi/luasrc/view/cbi/full_valueheader.htm @@ -14,5 +14,9 @@ $Id$ -%> <div class="cbi-value" id="cbi-<%=self.config.."-"..section.."-"..self.option%>"> - <label class="cbi-value-title"<%= attr("for", cbid) %>><%=self.title%></label> + <label class="cbi-value-title"<%= attr("for", cbid) %>> + <%- if self.titleref then -%><a class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%> + <%-=self.title-%> + <%- if self.titleref then -%></a><%- end -%> + </label> <div class="cbi-value-field"> diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm index 36304081b..a397762f4 100644 --- a/libs/cbi/luasrc/view/cbi/tblsection.htm +++ b/libs/cbi/luasrc/view/cbi/tblsection.htm @@ -34,7 +34,11 @@ end <th> </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"> </th> <%- count = count + 1; end -%> |