-
Notifications
You must be signed in to change notification settings - Fork 7
[SE-4473] Implement progress bar #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
| from functools import reduce | ||
|
|
||
| import six | ||
| from django.conf import settings | ||
| from django.contrib.auth.models import User | ||
| from lxml import etree | ||
| from opaque_keys.edx.keys import UsageKey | ||
|
|
@@ -493,6 +494,9 @@ def _student_or_public_view(self, context, prereq_met, prereq_meta_info, banner_ | |
|
|
||
| fragment = Fragment() | ||
| params = self._get_render_metadata(context, display_items, prereq_met, prereq_meta_info, banner_text, view, fragment) | ||
| if settings.FEATURES.get('SHOW_PROGRESS_BAR', False) and getattr(settings, 'COMPLETION_AGGREGATOR_URL', ''): | ||
| parent_block_id = self.get_parent().scope_ids.usage_id.block_id | ||
| params['chapter_completion_aggregator_url'] = '/'.join([settings.COMPLETION_AGGREGATOR_URL, str(self.course_id), parent_block_id]) + '/' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pkulkark this will raise an attribute error if
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yes! Good catch. Fixed it. Also added it in the testing instructions. |
||
| fragment.add_content(self.system.render_template("seq_module.html", params)) | ||
|
|
||
| self._capture_full_seq_item_metrics(display_items) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.