projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/admin-core: Added several cross-references to relevant configuration pages
[project/luci.git]
/
libs
/
cbi
/
luasrc
/
view
/
cbi
/
tblsection.htm
diff --git
a/libs/cbi/luasrc/view/cbi/tblsection.htm
b/libs/cbi/luasrc/view/cbi/tblsection.htm
index 7bb31caa1debdea2a5c3d62c24fb09116b694883..a6944881ac8b43d0bc30ce0515e869f13b24a2d6 100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/tblsection.htm
+++ b/
libs/cbi/luasrc/view/cbi/tblsection.htm
@@
-22,7
+22,9
@@
end
<!-- tblsection -->
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
<!-- tblsection -->
<fieldset class="cbi-section" id="cbi-<%=self.config%>-<%=self.sectiontype%>">
- <legend><%=self.title%></legend>
+ <% if self.title and #self.title > 0 then -%>
+ <legend><%=self.title%></legend>
+ <%- end %>
<div class="cbi-section-descr"><%=self.description%></div>
<div class="cbi-section-node">
<%- local count = 0 -%>
<div class="cbi-section-descr"><%=self.description%></div>
<div class="cbi-section-node">
<%- local count = 0 -%>
@@
-32,7
+34,11
@@
end
<th> </th>
<%- end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<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 title="<%=self.titledesc or translate('cbi_gorel')%>" 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 -%>
<%- count = count + 1; end; end; if self.extedit or self.addremove then -%>
<th class="cbi-section-table-cell"> </th>
<%- count = count + 1; end -%>