+<%- luci.i18n.loadc("minidlna") -%>
+
<script type="text/javascript">//<![CDATA[
XHR.poll(5, '<%=luci.dispatcher.build_url("admin/services/minidlna_status")%>', null,
function(x, st)
if (st.running)
{
tb.innerHTML = String.format(
- '<%:%The miniDLNA service is active, serving %d audio, %d video and %d image files.%>',
+ '<%:The miniDLNA service is active, serving %d audio, %d video and %d image files.%>',
st.audio, st.video, st.image
);
}
else
{
- tb.innerHTML = '<%:The miniDLNA service is not running.%>';
+ tb.innerHTML = '<em><%:The miniDLNA service is not running.%></em>';
}
}
}