summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/view
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-05 13:32:59 +0000
committerSteven Barth <steven@midlink.org>2008-09-05 13:32:59 +0000
commit9243e20e27010a1d5754506774a3d813c7d5b8b0 (patch)
tree0dfc76809f802a37c8f3a8b298151c06aa765ae2 /libs/cbi/luasrc/view
parent9cae9dabf2b3e6251fdb3a9db37d868d1b0c575c (diff)
Added .href parameter to DummyValues
Diffstat (limited to 'libs/cbi/luasrc/view')
-rw-r--r--libs/cbi/luasrc/view/cbi/dvalue.htm6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/view/cbi/dvalue.htm b/libs/cbi/luasrc/view/cbi/dvalue.htm
index c2187838c4..88f38ca7b6 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 %><a href="<%=self.href%>"><% 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 %></a><%end%>
&#160;
<%+cbi/valuefooter%>