<% if (typeof leftAction !== 'undefined') { %> id="<%= leftAction.id %>" <% } %> data-role="button" rel="external" data-transition="pop" class="ui-btn-left" data-theme="b" data-icon="<%= leftAction.icon %>"><%= leftAction.text %> <% } %>

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

<% if (typeof rightAction !== 'undefined') { %> id="<%= rightAction.id %>" <% } %> data-role="button" rel="external" data-transition="pop" class="ui-btn-right" data-theme="b" data-icon="<%= rightAction.icon %>"><%= rightAction.text %> <% } %>