Fixed a whitespace issue
[project/luci.git] / libs / cbi / luasrc / view / cbi / dvalue.htm
index bdcbd31..88f38ca 100644 (file)
@@ -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 %>
-&nbsp;
+<% end -%>
+<%- if self.href then %></a><%end%>
+&#160;
 <%+cbi/valuefooter%>