<%if(data.resource && data.resource.length){ for(var i = 0; i < data.resource.length; i++){%>
<%=data.resource[i].subject %>
<%=data.resource[i].date%>
<%=data.resource[i].from.name%>
<%=data.resource[i].subject%>
<%}%> <%}else{%>
Sem resultados
<%}%>