* feat: Add completion progress bar to dashboard
[SE-4473] Add completion progress bar to dashboard (#29271)
This commit is contained in:
@@ -21,6 +21,8 @@ from openedx.features.course_experience import course_home_page_title, DISABLE_C
|
||||
settings.FEATURES.get('ENABLE_SPECIAL_EXAMS', False) and
|
||||
(course.enable_proctored_exams or course.enable_timed_exams)
|
||||
)
|
||||
|
||||
completion_aggregator_url = settings.COMPLETION_AGGREGATOR_URL if settings.FEATURES.get("SHOW_PROGRESS_BAR", False) else ""
|
||||
%>
|
||||
|
||||
% if display_reset_dates_banner:
|
||||
@@ -241,6 +243,12 @@ ${HTML(fragment.foot_html())}
|
||||
<span class="nav-item nav-item-sequence">${sequence_title}</span>
|
||||
% endif
|
||||
</div>
|
||||
% if settings.FEATURES.get("SHOW_PROGRESS_BAR", False):
|
||||
<div class="container">
|
||||
<iframe style="border: none; height: 50px; position: relative; top: 10px; width: -webkit-fill-available" src="${completion_aggregator_url}/${course.id}/">
|
||||
</iframe>
|
||||
</div>
|
||||
% endif
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user