* luci/libs/cbi: improved error integration with uvl
[project/luci.git] / libs / cbi / luasrc / view / cbi / dvalue.htm
index 7d22fe0..88f38ca 100644 (file)
@@ -14,14 +14,16 @@ $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 %>
-       <%=self:value(section)%>
+       <%=luci.util.pcdata(self:value(section))%>
 <% else %>
-       <%=self.value%>
+       <%=luci.util.pcdata(self.value)%>
 <%     end
 else %>
-       <%=self:cfgvalue(section)%>
-<% end %>
-&nbsp;
+       <%=luci.util.pcdata(self:cfgvalue(section))%>
+<% end -%>
+<%- if self.href then %></a><%end%>
+&#160;
 <%+cbi/valuefooter%>