Files
edx-platform/lms/templates/learner_dashboard/programs.html
Tasawer 628843f62c ECOM-3201
Updated dashboard UI for empty list of courses and programs
2016-04-14 10:48:21 +00:00

37 lines
1.2 KiB
HTML

<%page expression_filter="h"/>
<%inherit file="../main.html" />
<%namespace name='static' file='../static_content.html'/>
<%!
from django.utils.translation import ugettext as _
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({
programsData: ${programs | n, dump_js_escaped_json},
xseriesUrl: '${xseries_url | n, js_escaped_string}'
});
</%static:require_module>
</%block>
<%block name="pagetitle">${_("Programs")}</%block>
<div class="program-list-wrapper">
% if not len(programs):
<div class="xseries-epmty-section">
<section class="empty-dashboard-message">
<p>${_("You are not enrolled in any XSeries Programs yet.")}</p>
<a class="find-xseries-programs" href="${xseries_url}"><i class="action-xseries-icon" aria-hidden="true"></i>
${_("Explore XSeries Programs")}
</a>
</section>
</div>
% else:
<div class="program-cards-container"></div>
% endif
<div class="sidebar"></div>
</div>