<% if (!_.isEmpty(data)) { %> <%- __('pim_import_export.widget.last_operations.date') %> <%- __('pim_common.type') %> <%- __('pim_import_export.widget.last_operations.profile_name') %> <%- __('pim_common.status') %> <%- __('pim_import_export.widget.last_operations.warning_count') %> <% _.each(data, function (operation) { %> <% var status = 'success'; %> <% status = (operation.warningCount !== null && parseInt(operation.warningCount) !== 0) ? 'warning' : status %> <% status = (6 === parseInt(operation.status)) ? 'important' : status %> <% var counter = (6 === parseInt(operation.status)) ? 1 : operation.warningCount %> <%- operation.date %> <%- __('pim_import_export.widget.last_operations.job_type.'+operation.type) %> <%- operation.label %> <%- operation.statusLabel %> <%- counter %> <% if (operation.canSeeReport) { %> <%- __('pim_import_export.widget.last_operations.details') %> <% } %> <% }); %> <% } else if (options.contentLoaded) {%>
<%- __('pim_import_export.widget.last_operations.empty') %>
<% } %>