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

<%= gettext('Summary') %>

<% _.each(data.summary, function (row) { %> <% }); %> <% _.each(data.paid_task_summary, function (row) { %> <% var amountStr = row.amount; if (row.type === paidTaskTypes.hourlyWork) { amountStr += ' ' + ngettext("hour", "hours", Math.round(row.amount)); } else if (row.type === paidTaskTypes.translation || row.type === paidTaskTypes.review) { amountStr += ' ' + ngettext("word", "words", Math.round(row.amount)); } %> <% }); %>
<%= gettext('Period') %> <%= gettext('Action') %> <%= gettext('Amount') %> × <%= gettext('Rate') %> <%= gettext('Subtotal') %>
<%= PTL.reports.dateRangeString(row.start, row.end, false) %> <%= row.action %> <%= Math.round(row.amount) %> <%= ngettext("word", "words", 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 %>
<% } %>