luci-app-dawn: Add hostname and interface to network overview 4147/head
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 9 Jun 2020 12:31:31 +0000 (13:31 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 9 Jun 2020 12:31:54 +0000 (13:31 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
applications/luci-app-dawn/luasrc/model/cbi/dawn/dawn_network.lua

index c626a3d0c0733fd8993ffe3517a232faffa58210..222778162b823301903975073e7b44f3c445f582 100644 (file)
@@ -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