<%= course.fullname %>
<%= correct %>/<% print(task.questions.length) %> correct
<% 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") { %><%= att.name %>
<%= answer.text %>
<% } else if (answers[question.id] && answers[question.id][answer.id]) { %><%= answer.text %>
<% } else { %><%= answer.text %>
<% } %> <% }); %>