<% if (data.meta.user !== "") { %> <% if (_.size(data.paid_tasks) > 0) { %>

<%= gettext('Registered Tasks') %>

<% _.each(data.paid_tasks, function (row) { %> <% var amount; if (row.type === paidTaskTypes.hourlyWork) { amount = interpolate(ngettext("%s hour", "%s hours", Math.round(row.amount)), [Math.round(row.amount)]); } else if (row.type === paidTaskTypes.translation || row.type === paidTaskTypes.review) { amount = interpolate(ngettext("%s word", "%s words", Math.round(row.amount)), [Math.round(row.amount)]); } else { amount = row.amount; } %> <% }); %>
<%= gettext('Datetime') %> (UTC<%= data.meta.utc_offset %>) <%= gettext('Comment') %> <%= gettext('Action') %> <%= gettext('Amount') %> × <%= gettext('Rate') %> <%= gettext('Subtotal') %>
<%- row.datetime %> <%- row.description %> <%- row.action %> <%= amount %> <%= row.rate %> <%= data.meta.user.currency %> <%= (row.rate * row.amount).toFixed(2) %> <%= data.meta.user.currency %> <% if (PTL.reports.adminReport) { %> <% var removeTask = gettext('Remove task'); %> <% } else { %> <%= gettext('Comment on it') %> <% } %>
<% } %> <% } %>