summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-minidlna/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-01 20:21:14 +0100
committerJo-Philipp Wich <jo@mein.io>2020-03-01 20:21:14 +0100
commit9ae591b38fedf16c3e5c97350b7182c5e28ed71f (patch)
tree9995b63807ebb39a0fd92e0a17807e86cbb67bc8 /applications/luci-app-minidlna/luasrc/view
parent0d68d0ad7bd2ab036caba973daa85864f8ec81a3 (diff)
luci-app-minidlna: convert to client side rendering
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-minidlna/luasrc/view')
-rw-r--r--applications/luci-app-minidlna/luasrc/view/admin_status/index/minidlna.htm1
-rw-r--r--applications/luci-app-minidlna/luasrc/view/minidlna_status.htm29
2 files changed, 0 insertions, 30 deletions
diff --git a/applications/luci-app-minidlna/luasrc/view/admin_status/index/minidlna.htm b/applications/luci-app-minidlna/luasrc/view/admin_status/index/minidlna.htm
deleted file mode 100644
index b2feeb2efd..0000000000
--- a/applications/luci-app-minidlna/luasrc/view/admin_status/index/minidlna.htm
+++ /dev/null
@@ -1 +0,0 @@
-<%+minidlna_status%>
diff --git a/applications/luci-app-minidlna/luasrc/view/minidlna_status.htm b/applications/luci-app-minidlna/luasrc/view/minidlna_status.htm
deleted file mode 100644
index eaf372137b..0000000000
--- a/applications/luci-app-minidlna/luasrc/view/minidlna_status.htm
+++ /dev/null
@@ -1,29 +0,0 @@
-<script type="text/javascript">//<![CDATA[
- XHR.poll(-1, '<%=url("admin/services/minidlna_status")%>', null,
- function(x, st)
- {
- var tb = document.getElementById('minidlna_status');
- if (st && tb)
- {
- if (st.running)
- {
- tb.innerHTML = String.format(
- '<%:The miniDLNA service is active, serving %d audio, %d video and %d image files.%>',
- st.audio, st.video, st.image
- );
- }
- else
- {
- tb.innerHTML = '<em><%:The miniDLNA service is not running.%></em>';
- }
- }
- }
- );
-//]]></script>
-
-<fieldset class="cbi-section">
- <legend><%:miniDLNA Status%></legend>
- <p id="minidlna_status">
- <em><%:Collecting data...%></em>
- </p>
-</fieldset>