* luci/themes: layout changes for smalltext tables in openwrt.org theme
* luci/olsr: layout fixes for status pages
This commit is contained in:
parent
25c82d7382
commit
79a35fe825
6 changed files with 17 additions and 9 deletions
|
@ -15,7 +15,7 @@ $Id$
|
||||||
<%+header%>
|
<%+header%>
|
||||||
<h1><%:olsrhna%></h1>
|
<h1><%:olsrhna%></h1>
|
||||||
<br />
|
<br />
|
||||||
<table cellspacing="0" cellpadding="6">
|
<table class="smalltext" cellspacing="0" cellpadding="6">
|
||||||
<tr>
|
<tr>
|
||||||
<th><%:destination%></th>
|
<th><%:destination%></th>
|
||||||
<th><%:gateway%></th>
|
<th><%:gateway%></th>
|
||||||
|
|
|
@ -16,7 +16,7 @@ $Id$
|
||||||
<h1><%:olsr_links%></h1>
|
<h1><%:olsr_links%></h1>
|
||||||
<p><%:olsr_links1%></p>
|
<p><%:olsr_links1%></p>
|
||||||
<br />
|
<br />
|
||||||
<table cellspacing="0" cellpadding="6">
|
<table class="smalltext" cellspacing="0" cellpadding="6">
|
||||||
<tr>
|
<tr>
|
||||||
<th><%:destination%></th>
|
<th><%:destination%></th>
|
||||||
<th><%:local%></th>
|
<th><%:local%></th>
|
||||||
|
@ -30,7 +30,7 @@ $Id$
|
||||||
end
|
end
|
||||||
local color = "#bb3333"
|
local color = "#bb3333"
|
||||||
|
|
||||||
link.ETX = tonumber(link.ETX)
|
link.ETX = tonumber(link.ETX) or 0
|
||||||
if link.ETX == 0 then
|
if link.ETX == 0 then
|
||||||
color = "#bb3333"
|
color = "#bb3333"
|
||||||
elseif link.ETX < 4 then
|
elseif link.ETX < 4 then
|
||||||
|
@ -46,7 +46,7 @@ $Id$
|
||||||
<td><%=link["Local IP"]%></td>
|
<td><%=link["Local IP"]%></td>
|
||||||
<td><%=link.LinkQuality%></td>
|
<td><%=link.LinkQuality%></td>
|
||||||
<td><%=link.NLQ%></td>
|
<td><%=link.NLQ%></td>
|
||||||
<td style="background-color:<%=color%>"><%=link.ETX%></td>
|
<td style="background-color:<%=color%>"><%=string.format("%%.3f", link.ETX)%></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -15,7 +15,7 @@ $Id$
|
||||||
<%+header%>
|
<%+header%>
|
||||||
<h1><%:olsr_mid%></h1>
|
<h1><%:olsr_mid%></h1>
|
||||||
<br />
|
<br />
|
||||||
<table cellspacing="0" cellpadding="6">
|
<table class="smalltext" cellspacing="0" cellpadding="6">
|
||||||
<tr>
|
<tr>
|
||||||
<th><%:node%></th>
|
<th><%:node%></th>
|
||||||
<th><%:aliases%></th>
|
<th><%:aliases%></th>
|
||||||
|
|
|
@ -15,7 +15,7 @@ $Id$
|
||||||
<%+header%>
|
<%+header%>
|
||||||
<h1><%:olsr_routes%></h1>
|
<h1><%:olsr_routes%></h1>
|
||||||
<br />
|
<br />
|
||||||
<table cellspacing="0" cellpadding="6">
|
<table class="smalltext" cellspacing="0" cellpadding="6">
|
||||||
<tr>
|
<tr>
|
||||||
<th><%:destination%></th>
|
<th><%:destination%></th>
|
||||||
<th><%:gateway%></th>
|
<th><%:gateway%></th>
|
||||||
|
@ -42,7 +42,7 @@ $Id$
|
||||||
<td><%=route.Gateway%></td>
|
<td><%=route.Gateway%></td>
|
||||||
<td><%=route.Interface%></td>
|
<td><%=route.Interface%></td>
|
||||||
<td><%=route.Metric%></td>
|
<td><%=route.Metric%></td>
|
||||||
<td style="background-color:<%=color%>"><%=route.ETX%></td>
|
<td style="background-color:<%=color%>"><%=string.format("%%.3f", tonumber(route.ETX) or 0)%></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -15,7 +15,7 @@ $Id$
|
||||||
<%+header%>
|
<%+header%>
|
||||||
<h1><%:olsr_topology%></h1>
|
<h1><%:olsr_topology%></h1>
|
||||||
<br />
|
<br />
|
||||||
<table cellspacing="0" cellpadding="6">
|
<table class="smalltext" cellspacing="0" cellpadding="6">
|
||||||
<tr>
|
<tr>
|
||||||
<th><%:destination%></th>
|
<th><%:destination%></th>
|
||||||
<th><%:olsr_lasthop%></th>
|
<th><%:olsr_lasthop%></th>
|
||||||
|
@ -33,7 +33,7 @@ $Id$
|
||||||
<td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>
|
<td><a href="http://<%=route["Last hop IP"]%>"><%=route["Last hop IP"]%></a></td>
|
||||||
<td><%=route.LQ%></td>
|
<td><%=route.LQ%></td>
|
||||||
<td><%=route.ILQ%></td>
|
<td><%=route.ILQ%></td>
|
||||||
<td><%=route.ETX%></td>
|
<td><%=string.format("%%.3f", tonumber(route.ETX) or 0)%></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -247,11 +247,19 @@ table.smalltext {
|
||||||
border-right: 1px solid #666666;
|
border-right: 1px solid #666666;
|
||||||
border-bottom: 1px solid #666666;
|
border-bottom: 1px solid #666666;
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
|
width: 80%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.smalltext tr:hover td {
|
||||||
|
background-color: #bbddee;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.smalltext tr th {
|
table.smalltext tr th {
|
||||||
padding: 0 0.25em;
|
padding: 0 0.25em;
|
||||||
border-left: 1px solid #666666;
|
border-left: 1px solid #666666;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.smalltext tr td {
|
table.smalltext tr td {
|
||||||
|
|
Loading…
Reference in a new issue