-<% if self.value then
- if type(self.value) == "function" then %>
- <%=luci.util.pcdata(self:value(section))%>
-<% else %>
- <%=luci.util.pcdata(self.value)%>
-<% end
-else %>
- <%=luci.util.pcdata(self:cfgvalue(section))%>
-<% end %>
+<% if self.href then %><a href="<%=self.href%>"><% end -%>
+ <%=pcdata(self:cfgvalue(section) or self.default or "")%>
+<%- if self.href then %></a><%end%>