% if state == 'unsubmitted':
% elif state == 'correct':
% elif state == 'incorrect':
% elif state == 'incomplete':
% endif % if hidden:
% endif

% if state == 'unsubmitted': unanswered % elif state == 'correct': correct % elif state == 'incorrect': incorrect % elif state == 'incomplete': incomplete % endif

% if msg: ${msg|n} % endif