><%= task.name %>

<%= course.fullname %>

<%= correct %>/<% print(task.questions.length) %> correct

<% _.each(task.questions, function (question, idx) { %>

<% print(idx + 1) %>.

<%= question.text %>

<% _.each(attachments, function (att) { if (((!att.options && !idx) || (parseInt(att.options) == idx)) && (att.visible === undefined || att.visible)) { %> <% if (att.type == "image") { %>
<% } %> <% }}); %> <% var firstLink = true; _.each(attachments, function (att) { if (((!att.options && !idx) || (parseInt(att.options) == idx)) && (att.visible === undefined || att.visible)) { %> <% if (att.type != "image") { %> <% if (firstLink) { firstLink = false; %>
<% } %>

<% } %> <% }}); %> <% _.each(question.answers, function (answer) { %> <% if (answer.correct && answers[question.id] && answers[question.id][answer.id]) { %>

<%= answer.text %>

<% } else if (answers[question.id] && answers[question.id][answer.id]) { %>

<%= answer.text %>

<% } else { %>

<%= answer.text %>

<% } %> <% }); %>
<% }); %>