<%= _.isUndefined(i18n['Total in']) ? 'Total in':i18n['Total in'] %> <%= fullMonthName %> <%= currentYear %>: <% if(!_.isUndefined('totalEmailsSent')) {%> <% sentLabel = ((totalEmailsSent > 1) ? _.isUndefined(i18n['emails']) ? 'emails':i18n['emails']: _.isUndefined(i18n['email']) ? 'email':i18n['email'])%> <%= (!_.isUndefined('totalEmailsSent') ? totalEmailsSent : '') %> <%= sentLabel %> <%= _.isUndefined(i18n['and']) ? 'and':i18n['and'] %> <% } %> <% if(!_.isUndefined('totalSmsSent')) {%> <% sentLabel = _.isUndefined(i18n['sms']) ? 'sms':i18n['sms']%> <%= (!_.isUndefined('totalSmsSent') ? totalSmsSent : '') %> <%= sentLabel %> <%= _.isUndefined(i18n['sent']) ? 'sent':i18n['sent'] %> <% } %> <% if(!_.isUndefined('totalEmailsDelayed')) { %> / <% upcomingLabel = ((totalEmailsDelayed > 1) ? _.isUndefined(i18n['emails']) ? 'emails':i18n['emails']: _.isUndefined(i18n['email']) ? 'email':i18n['email'])%> <%= (!_.isUndefined('totalEmailsDelayed') ? totalEmailsDelayed : '') %> <%= upcomingLabel %> <%= _.isUndefined(i18n['and'])?'and':i18n['and'] %> <% } %> <% if(!_.isUndefined('totalSmsDelayed')) { %> <% upcomingLabel = _.isUndefined(i18n['sms']) ? 'sms':i18n['sms']%> <%= (!_.isUndefined('totalSmsDelayed') ? totalSmsDelayed : '') %> <%= upcomingLabel %> <%= _.isUndefined(i18n['will be sent'])?'will be sent':i18n['will be sent'] %> <% } %>