<%# LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ -%> <% local t = require("luci.tools.webadmin") local v = self:cfgvalue(section) v = v and nixio.fs.stat(v) -%> <%+cbi/valueheader%> <% if v then %> <%:cbi_upload Uploaded File%> (<%=t.byte_format(v.size)%>) /> " alt="<%:cbi_replace%>" title="<%:cbi_replace%>" src="<%=resource%>/cbi/reload.gif" /> <% else %> /> <% end %> <%+cbi/valuefooter%>