summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-06-10 19:32:59 +0300
committerGitHub <noreply@github.com>2020-06-10 19:32:59 +0300
commit8077fcd17c262624b056b0f5451ab0c526830895 (patch)
tree9610950116aa423b7005e0e145801b3045294fdb
parent490596a623d9fd0e763e593ee388ec81477a892b (diff)
parent14cd02ba9f317117841f9cdce269a91b541a48c4 (diff)
Merge pull request #4147 from dwmw2/dawn
luci-app-dawn: Add hostname and interface to network overview
-rw-r--r--applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua6
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