<%! from django.utils.translation import ugettext as _ %>
% for (i,result) in enumerate(results):
    % if 'task_name' in result and 'result' in result:
        <div class="combined-rubric-container"
        %if i>0:
            data-status="hidden" data-number="${i}">
        % else:
            data-status="shown" data-number="${i}">
        % endif
            <div class="visibility-control visibility-control-rubric">
                <div class="inner">
                </div>
                <span class="section-header section-header-rubric">${_("Submitted Rubric")}</span>
            </div>
            <div class="oe-tools rubric-header">
                <span class="oe-tools-label"></span>
                <button class="rubric-collapse" href="#">${_("Toggle Full Rubric")}</button>
                <span class="oe-tools-scores">
                    <span class="oe-tools-scores-label"></span>
                    % if len(results)>1:
                        <button href="#" alt="Previous" class="rubric-button rubric-previous-button"><i class="icon-chevron-left"></i></button>
                    % endif 
                    ${result['task_name']} from grader ${i+1}
                    % if len(results)>1:
                        <button href="#" alt="Next" class="rubric-button rubric-next-button"><i class="icon-chevron-right"></i></button>
                    % endif
                </span>
            </div>
            ${result['result'] | n}
            % if result.get('feedback'):
                <div class="written-feedback">
                    ${result['feedback'] | n}
                </div>
            %endif
        </div>
    %endif

% endfor

