% if (typeof leftAction !== 'undefined') { %>
<%= leftAction %>
<% } %>
<% if (typeof itemCount !== 'undefined') { %>
<%= title %> (<%= itemCount %>)
<% } else { %>
<%= title %>
<% } %>
<% if (typeof rightAction !== 'undefined') { %>
<%= rightAction %>
<% } %>