<% if (!viewList) { %>
<% if (expandDocs) { %> <% } else { %> <% } %>
<% } %>

<% if (endOfResults) { %>

End of results - edit query

<% } %>