diff options
author | David Woodhouse <dwmw2@infradead.org> | 2020-06-09 13:31:31 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2020-06-09 13:31:54 +0100 |
commit | 14cd02ba9f317117841f9cdce269a91b541a48c4 (patch) | |
tree | 0d981f86aa76b12254e5601501375bd6f72fab29 /applications/luci-app-dawn | |
parent | 16f443bf4caf6e7dd85efd1ce111b45779acdf5e (diff) |
luci-app-dawn: Add hostname and interface to network overview
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'applications/luci-app-dawn')
-rw-r--r-- | applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua b/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua index c626a3d0c..222778162 100644 --- a/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua +++ b/applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua @@ -33,6 +33,8 @@ function s.render(self, sid) <div class="td" style="vertical-align: top;"> <div class="table" id="ap-<%= mac %>"> <div class="tr table-titles"> + <div class="th">Hostname</div> + <div class="th">Interface</div> <div class="th">MAC</div> <div class="th">Utilization</div> <div class="th">Frequency</div> @@ -41,6 +43,8 @@ function s.render(self, sid) <div class="th">VHT Sup</div> </div> <div class="tr"> + <div class="td"><%= data.hostname %></div> + <div class="td"><%= data.iface %></div> <div class="td"><%= mac %></div> <div class="td"><%= "%.2f" %(data.channel_utilization / 2.55) %> %</div> <div class="td"><%= "%.3f" %( data.freq / 1000 ) %> GHz (Channel: <%= "%d" %( status.frequency_to_channel(data.freq) ) %>)</div> @@ -89,4 +93,4 @@ function s.render(self, sid) ]]) end -return m
\ No newline at end of file +return m |