diff options
author | Steven Barth <steven@midlink.org> | 2008-08-14 11:50:13 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-14 11:50:13 +0000 |
commit | fce110981700dfd57cd9f8c381d3bdd15ee8befd (patch) | |
tree | df89ec3fdff22161e99824eb62a3780994886a80 /libs | |
parent | 15f4fa76d5c468e7def2d3c38d148945ce980030 (diff) |
libs/cbi: Add cross-linking capabilities
Diffstat (limited to 'libs')
-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 -%> |