<% if (resultGroups.length === 0) { %> <% } else { %> Show all search results...
<% _.each(resultGroups, function(resultGroup) { %>
<% var parts = resultGroup.iconUrl.split(".png"); %> <% var iconUrl = parts[0] + "-20.png"; %>
<%=resultGroup.title%>
<% for (var i = 0; i < Math.min(resultGroup.searchResults.length, resultGroup.resultLimit); i++) { %> <% var result = resultGroup.searchResults[i]; %> <% var cssClass = "result"; %> <% if (result["linkCssClass"]) { cssClass += " " + result["linkCssClass"]; } %> <% var target = ""; %> <% if (result["linkTarget"]) { target = ' target="' + result["linkTarget"] + '"'; } %> ><%=result.linkText%> <% } %> <% if (resultGroup.resultLimit < resultGroup.totalResults) { %> See all <%=resultGroup.totalResults%> <%=resultGroup.quickSearchTitle%> » <% } %>
<% }); %>
<% } %>