<%page expression_filter="h"/> <%inherit file="/main.html" /> <%def name="online_help_token()"><% return "learnerdashboard" %> <%namespace name='static' file='/static_content.html'/> <%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_string from openedx.features.journals.views.learner_dashboard import get_journal_about_page_url, format_expiration_date, has_access_expired %> <%block name="pagetitle">${_("Journal Dashboard")} <%block name="bodyclass">view-dashboard is-authenticated <%block name="header_extras"> % for template_name in ["donation"]: % endfor <%block name="js_extra"> <%static:js group='dashboard'/> % if settings.FEATURES.get('ENABLE_DASHBOARD_SEARCH'): <%static:require_module module_name="course_search/js/dashboard_search_factory" class_name="DashboardSearchFactory"> DashboardSearchFactory(); % endif % if redirect_message: <%static:require_module module_name="js/views/message_banner" class_name="MessageBannerView"> var banner = new MessageBannerView({urgency: 'low', type: 'warning'}); $('#content').prepend(banner.$el); banner.showMessage(${redirect_message | n, dump_js_escaped_json}) % endif
<%include file="/learner_dashboard/_dashboard_navigation_journals.html"/> % if len(journals) > 0:
    % for journal in journals: <% about_page_url = get_journal_about_page_url(slug=journal['journal']['journalaboutpage']['slug']) formatted_expiration_date = format_expiration_date(journal['expiration_date']) access_expired = has_access_expired(journal['expiration_date']) %>
  • % endfor
% else:

${_("You have not purchased access to any journals yet.")}

${_("Explore journals and courses")}
% endif