From: Steven Barth Date: Fri, 5 Sep 2008 13:32:59 +0000 (+0000) Subject: Added .href parameter to DummyValues X-Git-Tag: 0.8.0~148 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9243e20e27010a1d5754506774a3d813c7d5b8b0;p=oweals%2Fluci.git Added .href parameter to DummyValues --- diff --git a/libs/cbi/luasrc/view/cbi/dvalue.htm b/libs/cbi/luasrc/view/cbi/dvalue.htm index c2187838c..88f38ca7b 100644 --- a/libs/cbi/luasrc/view/cbi/dvalue.htm +++ b/libs/cbi/luasrc/view/cbi/dvalue.htm @@ -14,7 +14,8 @@ $Id$ -%> <%+cbi/valueheader%> -<% if self.value then +<% if self.href then %><% end -%> +<%- if self.value then if type(self.value) == "function" then %> <%=luci.util.pcdata(self:value(section))%> <% else %> @@ -22,6 +23,7 @@ $Id$ <% end else %> <%=luci.util.pcdata(self:cfgvalue(section))%> -<% end %> +<% end -%> +<%- if self.href then %><%end%>   <%+cbi/valuefooter%>