summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-03-27 22:45:57 +0200
committerGitHub <noreply@github.com>2018-03-27 22:45:57 +0200
commit8d34bf94a66d0fe3b36f064170ae7516f4d78126 (patch)
tree5843fa1b18eb899dd8bfdd15c75c669e6ff1bafa /modules
parent648fd91798cdf63969c06c090832ae8d82e01ef7 (diff)
parent70783f5802a7231beb151c1a40ed741c25be7fe1 (diff)
Merge pull request #1697 from TDT-AG/pr/20180323-luci-base-fix-tblsection
luci-base: add missing colspan in tblsection if table is empty
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/luasrc/view/cbi/tblsection.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/tblsection.htm b/modules/luci-base/luasrc/view/cbi/tblsection.htm
index 26d13f9372..3cb87563f1 100644
--- a/modules/luci-base/luasrc/view/cbi/tblsection.htm
+++ b/modules/luci-base/luasrc/view/cbi/tblsection.htm
@@ -35,7 +35,7 @@ end
<%- else -%>
<th>&#160;</th>
<%- end -%>
- <%- end -%>
+ <%- count = count +1; end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell"<%=width(k)%>>
<%- if k.titleref then -%><a title="<%=self.titledesc or translate('Go to relevant configuration page')%>" class="cbi-title-ref" href="<%=k.titleref%>"><%- end -%>
@@ -44,7 +44,7 @@ end
</th>
<%- count = count + 1; end; end; if self.sortable then -%>
<th class="cbi-section-table-cell"><%:Sort%></th>
- <%- end; if self.extedit or self.addremove then -%>
+ <%- count = count + 1; end; if self.extedit or self.addremove then -%>
<th class="cbi-section-table-cell">&#160;</th>
<%- count = count + 1; end -%>
</tr>