Converted the program listing logic into a web fragment view and exposed a URL for mobile app. LEARNER-2980
26 lines
727 B
HTML
26 lines
727 B
HTML
## mako
|
|
|
|
<%page expression_filter="h"/>
|
|
|
|
<%namespace name='static' file='../static_content.html'/>
|
|
<%!
|
|
from openedx.core.djangolib.js_utils import (
|
|
dump_js_escaped_json, js_escaped_string
|
|
)
|
|
%>
|
|
|
|
<%block name="js_extra">
|
|
<%static:require_module module_name="js/learner_dashboard/program_list_factory" class_name="ProgramListFactory">
|
|
ProgramListFactory({
|
|
marketingUrl: '${marketing_url | n, js_escaped_string}',
|
|
programsData: ${programs | n, dump_js_escaped_json},
|
|
userProgress: ${progress | n, dump_js_escaped_json}
|
|
});
|
|
</%static:require_module>
|
|
</%block>
|
|
|
|
<div class="program-list-wrapper grid-container">
|
|
<div class="program-cards-container col"></div>
|
|
<div class="sidebar col col-last"></div>
|
|
</div>
|