<% if (data.meta.user !== "") { %>

<%= gettext('Summary') %>

<% _.each(data.summary, function (row) { %> <% }); %> <% _.each(data.paid_task_summary, function (row) { %> <% var amountStr; if (row.type === paidTaskTypes.hourlyWork) { amountStr = interpolate(ngettext("%s hour", "%s hours", Math.round(row.amount)), [Math.round(row.amount)]); } else if (row.type === paidTaskTypes.translation || row.type === paidTaskTypes.review) { amountStr = interpolate(ngettext("%s word", "%s words", Math.round(row.amount)), [Math.round(row.amount)]); } else { amountStr = row.amount; } %> <% }); %>
<%= gettext('Period') %> <%= gettext('Action') %> <%= gettext('Amount') %> × <%= gettext('Rate') %> <%= gettext('Subtotal') %>
<%= PTL.reports.dateRangeString(row.start, row.end, false) %> <%= row.action %> <%= interpolate(ngettext("%s word", "%s words", Math.round(row.amount)), [Math.round(row.amount)]) %> <%= row.rate %> <%= data.meta.user.currency %> <%= row.subTotal %> <%= data.meta.user.currency %>
<%= row.period %> <%= row.action %> <%= gettext("(registered tasks)") %> <%= amountStr %> <%= row.rate %> <%= data.meta.user.currency %> <%= row.subTotal %> <%= data.meta.user.currency %>
<%= interpolate(gettext('Total (%(currency)s)'), {'currency': data.meta.user.currency}, true) %> <%= data.total.toFixed(2) %> <%= data.meta.user.currency %>
<% } %>