<% if (attributes.isMore) { %>
Back to All Results
<% } %> <% _.each(attributes.resultGroups, function(resultGroup) { %>
<%=resultGroup.title%>
<%=resultGroup.title%>
1-<%=_.min([resultGroup.resultLimit, resultGroup.totalResults])%> of <%=resultGroup.totalResults%>

<%=resultGroup.summaryText%>

<% if (resultGroup.resultLimit < resultGroup.totalResults) { %> <% } %>
<% var numPerRow = Math.min(2, resultGroup.resultsPerRow ? resultGroup.resultsPerRow : 2); %> <% var columnStyle = numPerRow === 1 ? 'full-width' : ''; %>
<% for (var i = 0; i < Math.min(resultGroup.searchResults.length, resultGroup.resultLimit); i+=numPerRow) { %> <% var last = resultGroup.searchResults.length - i - 1 < numPerRow ? " last" : null; %>
<% for (var j = 0; j < numPerRow & i + j < resultGroup.searchResults.length; j++) { %> <% var result = resultGroup.searchResults[i + j]; %> <% var cssClass = "result"; %> <% if (result["linkCssClass"]) { cssClass += " " + result["linkCssClass"]; } %> <% var target = ""; %> <% if (result["linkTarget"]) { target = ' target="' + result["linkTarget"] + '"'; } %> <% var description = ""; %> <% if (result["description"]) description = '' + result["description"] + ''; %> > <%=result.linkText%> <%=description%> <% } %> <% if (resultGroup.searchResults.length < numPerRow) { %> <% for ( ; j < numPerRow; j++) { %> <% } %> <% } %>
<% } %>
<% }); %> <% if (attributes.isMore) { %>
Back to All Results
<% } %>