<%+cbi/valueheader%> <% local hint = self:cfgvalue(section) local cache = self.detect_cache local text = "N/A" local color = "#999999" if cache then if cache.socket then text = "ok" color = "#249400" else text = "fail" color = "#ff0000" end end %> <%=text%> <%+cbi/valuefooter%>