<% var self=this; var cnt = 0; _.each(jobs.models, function(job) { var checkboxname = "checkbox_" + cnt; cnt++; var selected= (job.attributes.id === options.currentSelection); %> class="selected"<% } %> data-id="<%= job.attributes.jobID %>"> <% var checked = job.checked; %> <% }) %>
<%= i18n.headers.name %> <%= i18n.headers.target %> <%= i18n.headers.startTime %> <%= i18n.headers.finishTime %> <%= i18n.headers.errorCount %> <%= i18n.headers.warningCount %> <%= i18n.headers.infoCount %> <%= i18n.headers.status %> <%= i18n.headers.actions %>
type="checkbox" <% if (checked) { %>checked="checked"<% } %>> <%= otdsCommon.replaceHTMLCharacters (job.attributes.name) %> <%= otdsCommon.replaceHTMLCharacters (job.attributes.target) %> <% if (job.attributes.startTime) { %><%= otdsCommon.convertLDAPDateToReadableDate_v2 (job.attributes.startTime) %><% } else { %>N/A<% } %> <% if (job.attributes.finishTime) { %><%= otdsCommon.convertLDAPDateToReadableDate_v2 (job.attributes.finishTime) %><% } else { %>N/A<% } %> <%= job.attributes.errorCount %> <%= job.attributes.warningCount %> <%= job.attributes.infoCount %> <%= otdsCommon.replaceHTMLCharacters (job.attributes.status) %> <% if ((job.attributes.cancellable == true) || (job.attributes.errorCount > 0) || (job.attributes.warningCount > 0) || (job.attributes.infoCount > 0)) { %> <%= i18n.headers.actions %>
    <% if (job.attributes.cancellable == true) { %>
  • <%= i18n.headers.cancel %>
  • <% } if (job.attributes.errorCount > 0) { %>
  • <%= i18n.headers.viewErrors %>
  • <% } if (job.attributes.warningCount > 0) { %>
  • <%= i18n.headers.viewWarnings %>
  • <% } if (job.attributes.infoCount > 0) { %>
  • <%= i18n.headers.viewInfo %>
  • <% } %>
<% } else { %> <%= i18n.headers.notavailable %> <% } %>