diff --git a/luasrc/view/dockerman/overview.htm b/luasrc/view/dockerman/overview.htm index e491fc5..ecd4e07 100644 --- a/luasrc/view/dockerman/overview.htm +++ b/luasrc/view/dockerman/overview.htm @@ -1,3 +1,11 @@ +<% +local fs = require "nixio.fs" +local uci = require 'luci.model.uci'.cursor() +local mode = 'normal' +if fs.access('/etc/config/argon') then + mode = uci:get_first('argon', 'global', 'mode') +end +-%>
@@ -131,7 +164,7 @@

<%:Containers%>

-

+

<%- if self.containers_total ~= "-" then -%><%- end -%> <%=self.containers_running%> /<%=self.containers_total%> @@ -149,7 +182,7 @@

<%:Images%>

-

+

<%- if self.images_total ~= "-" then -%><%- end -%> <%=self.images_used%> /<%=self.images_total%> @@ -167,7 +200,7 @@

<%:Networks%>

-

+

<%- if self.networks_total ~= "-" then -%><%- end -%> <%=self.networks_total%> @@ -185,7 +218,7 @@

<%:Volumes%>

-

+

<%- if self.volumes_total ~= "-" then -%><%- end -%> <%=self.volumes_total%>