modules/freifunk: Fix problem with public_status html
[project/luci.git] / modules / freifunk / luasrc / view / freifunk / public_status.htm
index e8a16257d1871141aca5058910814f04d3e0aff4..1698e9c23b1a9cb9fa0fd117a52fc3d7525f4d2a 100644 (file)
@@ -278,11 +278,11 @@ local defroutev6 = sys.net.defaultroute6()
        <h2><%:Default routes%></h2>
                <div class="cbi-section">
                        <div class="cbi-section-node">
-                               <table class="cbi-section-table">
 
 <% if not defroutev4 and not defroutev6 then %>
        <%:No default routes known.%>
 <%else%>
+                               <table class="cbi-section-table">
                                                <tr class="cbi-section-table-titles">
                                                        <th class="cbi-section-table-cell"><%:Network%></th>
                                                        <th class="cbi-section-table-cell"><%:Interface%></th>
@@ -312,8 +312,8 @@ local defroutev6 = sys.net.defaultroute6()
        <% end %>
 
                                </table>
+<% end %>
                </div>
        </div>
 </div>
-<% end %>
 <%+footer%>