libs/web: render aggregated messages
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 27 Nov 2010 18:18:06 +0000 (18:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 27 Nov 2010 18:18:06 +0000 (18:18 +0000)
libs/web/luasrc/view/cbi/map.htm

index 406c7e7..d3fc65b 100644 (file)
@@ -13,6 +13,10 @@ $Id$
 
 -%>
 
+<%- if firstmap and messages then local msg; for _, msg in ipairs(messages) do -%>
+       <div class="errorbox"><%=pcdata(msg)%></div>
+<%- end end -%>
+
 <%-+cbi/apply_xhr-%>
 
 <div class="cbi-map" id="cbi-<%=self.config%>">