Developing lightweight computation at the DSG edge

links.htm 1.16 KB
Newer Older
p4u's avatar
p4u committed
1
<%+header%>
p4u's avatar
p4u committed
2
<meta http-equiv="refresh" content="10" />
p4u's avatar
p4u committed
3
4
<h2><a id="content" name="content"><%:Links%></a></h2>
<br />
p4u's avatar
p4u committed
5
<div id="links" style="position:relative;padding-left:2px">
p4u's avatar
p4u committed
6
7
8
9
10
11
12
13
14
15
16

<% for j,d in pairs(links) do %>

	<table>
	<tr>
		<td><img src="/luci-static/resources/bmx6/wifi.png"/></td>
		<td><strong><%=j%></strong></td>
	</tr>
	</table>

	<div style="display:table">
17

p4u's avatar
p4u committed
18
<% for i,l in ipairs(d) do  %>
p4u's avatar
p4u committed
19
	<div id="link" style="background-color:#dadbe9;left:50px;width:300px;margin:10px;float:left;position:relative">
p4u's avatar
p4u committed
20
	<table>
p4u's avatar
p4u committed
21
22
23
24
25
26
	<tr><th colspan="2">
		<span style="color:grey;font-weight:700;text-align:left;">
		<%=l.globalId%>
		<br />
		</span>
	</th></tr>
p4u's avatar
p4u committed
27
28
29
30
	<tr>
		<td><img src="/luci-static/resources/bmx6/link.png"/></td>
		<td>
		<ul>
p4u's avatar
p4u committed
31
32
			<li>Local IP: <a href="[<%=l.llocalIp%>]"><%=l.llocalIp%></a></li>
			<li>Device: <%=l.viaDev%></li>
33
			<li>Rate (rx/tx):
p4u's avatar
p4u committed
34
35
36
37
				<% if l.rxRate+l.txRate < 120 then %>
					<span style="color:red;">
				<% else %>
					<span style="color:green;">
38
				<% end %>
p4u's avatar
p4u committed
39
40
41
42
43
44
45
					<%=l.rxRate%>/<%=l.txRate%>
				</span>
			</li>
			<li>Routes: <%=l.routes%></li>
		</ul>
		</td>
	</tr>
46
	</table>
p4u's avatar
p4u committed
47
48
49
	</div>
<% end %>
</div>
p4u's avatar
p4u committed
50
51
52
<% end %>
</div>

p4u's avatar
p4u committed
53
54
55
<br />
<br />
<%+footer%>