<% if (typeof leftAction !== 'undefined') { %> <%= leftAction.text %> <% } %>

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

<% if (typeof rightAction !== 'undefined') { %> <%= rightAction.text %> <% } %>