luci-base: fix colspans calculation in tblsection

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2018-03-14 16:03:55 +01:00
parent 84b3ba46f8
commit 70783f5802

View file

@ -35,7 +35,7 @@ end
<%- else -%> <%- else -%>
<th>&#160;</th> <th>&#160;</th>
<%- end -%> <%- end -%>
<%- end -%> <%- count = count +1; end -%>
<%- for i, k in pairs(self.children) do if not k.optional then -%> <%- for i, k in pairs(self.children) do if not k.optional then -%>
<th class="cbi-section-table-cell"<%=width(k)%>> <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 -%> <%- 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> </th>
<%- count = count + 1; end; end; if self.sortable then -%> <%- count = count + 1; end; end; if self.sortable then -%>
<th class="cbi-section-table-cell"><%:Sort%></th> <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> <th class="cbi-section-table-cell">&#160;</th>
<%- count = count + 1; end -%> <%- count = count + 1; end -%>
</tr> </tr>