hidden_content.html 1.36 KB
Newer Older
1 2 3 4 5 6 7
<%page expression_filter="h"/>
<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.markup import HTML, Text
%>

<div class="sequence hidden-content proctored-exam completed">
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    <h3>
        % if self_paced:
            ${_("The course has ended.")}
        % else:
            ${_("The due date for this assignment has passed.")}
        % endif
    </h3>
    <hr>
    <p>
        % if self_paced:
            ${Text(_(
                "Because the course has ended, this assignment is no longer "
                "available.{line_break}If you have completed this assignment, your "
                "grade is available on the {link_start}progress page{link_end}."
            )).format(
                line_break=HTML("<br>"),
                link_start=HTML("<a href='{}'>").format(progress_url),
                link_end=HTML("</a>"),
            )}
        % else:
            ${Text(_(
                "Because the due date has passed, this assignment is no longer "
                "available.{line_break}If you have completed this assignment, your "
                "grade is available on the {link_start}progress page{link_end}."
            )).format(
                line_break=HTML("<br>"),
                link_start=HTML("<a href='{}'>").format(progress_url),
                link_end=HTML("</a>"),
            )}
        % endif
    </p>
39
</div>