Initial changes to gate section based on completion percentage code refactoring and added evaluation of completion milestone Fixed broken unit tests and added new tests Fixed broken tests and quality violations Fixed Pep8 violation Fixed eslint quality violations Test changes as suggested by reviewer changes after feedbacy from reviewer Update the docstring with suggested changes excluding chapter from the blocks Disallow empty values for min score and min completion Changes afte feedback from UX/Accessibility removed blank line
27 lines
967 B
HTML
27 lines
967 B
HTML
<%page args="prereq_url, prereq_section_name, gated_section_name" expression_filter="h"/>
|
|
|
|
<%!
|
|
from django.utils.translation import ugettext as _
|
|
from openedx.core.djangolib.markup import Text
|
|
%>
|
|
|
|
<div class="xblock xblock-student_view xblock-student_view-vertical xblock-initialized" id="content_locked" role="tabpanel" aria-labelledby="tab_0">
|
|
<h2 class="hd hd-2 unit-title">
|
|
<span class="icon fa fa-lock" aria-hidden="true"> </span>${gated_section_name}
|
|
<span class="sr">${_("Content Locked")}</span>
|
|
</h2>
|
|
<p/>
|
|
<h3 class="hd hd-3 problem-header">
|
|
${_("Content Locked")}
|
|
</h3>
|
|
<p>
|
|
${Text(_(
|
|
"You must complete the prerequisites for '{prereq_section_name}' to access this content."
|
|
)).format(prereq_section_name=prereq_section_name)}
|
|
<p>
|
|
<a href="${prereq_url}" class="btn btn-brand">${_("Go to Prerequisite Section")}
|
|
</a>
|
|
</p>
|
|
</p>
|
|
</div>
|