summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/view/public_statistics
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-13 20:45:26 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-13 20:45:26 +0100
commit9680fdea9e2e38bfafe0d97967925dd9fc836a05 (patch)
treeccc5e30e098eab84c4eaf2da8bda97dbfd5a17df /applications/luci-app-statistics/luasrc/view/public_statistics
parent1d47f0c1a913ccbcba86061daa20e1e336d7b559 (diff)
luci-app-statistics: convert graph rendering to client side js
This conversion requires cgi-io >= version 17 and uhttpd version >= 2020-02-12 to function properly. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/view/public_statistics')
-rw-r--r--applications/luci-app-statistics/luasrc/view/public_statistics/graph.htm38
1 files changed, 0 insertions, 38 deletions
diff --git a/applications/luci-app-statistics/luasrc/view/public_statistics/graph.htm b/applications/luci-app-statistics/luasrc/view/public_statistics/graph.htm
deleted file mode 100644
index 85a20d993a..0000000000
--- a/applications/luci-app-statistics/luasrc/view/public_statistics/graph.htm
+++ /dev/null
@@ -1,38 +0,0 @@
-<%#
- Copyright 2008 Steven Barth <steven@midlink.org>
- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
- Licensed to the public under the Apache License 2.0.
--%>
-
-<%+header%>
-
-<h2 name="content"><%:Statistics%></h2>
-
-<form action="" method="get">
- <select name="host">
- <% for i, host in ipairs(hosts) do %>
- <option<% if host == current_host then %> selected="selected"<% end %>><%=pcdata(host)%></option>
- <% end %>
- </select>
- <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display Host »%>" />
- <select name="timespan">
- <% for i, span in ipairs(timespans) do %>
- <option<% if span == current_timespan then %> selected="selected"<% end %>><%=span%></option>
- <% end %>
- </select>
- <input class="cbi-button cbi-button-apply" type="submit" name="submit" value="<%:Display timespan »%>" />
-</form>
-
-<br />
-<hr />
-<br />
-
-<div style="text-align: center">
- <% for i, img in ipairs(images) do %>
- <img src="<%=REQUEST_URI%>?img=<%=img%>&#38;host=<%=current_host%>" />
- <br />
- <% end %>
-</div>
-
-<%+footer%>
-