* feat: Add completion progress bar to dashboard

[SE-4473] Add completion progress bar to dashboard (#29271)
This commit is contained in:
Pooja Kulkarni
2022-02-09 19:58:48 +05:30
committed by GitHub
parent 75d8448ef5
commit b7d420a29e
4 changed files with 33 additions and 2 deletions

View File

@@ -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>