<%page expression_filter="h"/> <%namespace name='static' file='static_content.html'/> <%! from django.utils.translation import ugettext as _ %>
% if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
    % for bundle in journal_info.get('journal_bundles'):
  • <%include file="journals/bundle_card.html" args="bundle=bundle"/>
  • % endfor
    %for journal in journal_info.get('journals'):
  • <%include file="journals/journal_card.html" args="journal=journal" />
  • %endfor
    ## limiting the course number by using HOMEPAGE_COURSE_MAX as the maximum number of courses %for course in courses[:homepage_course_max]:
  • <%include file="course.html" args="course=course" />
  • %endfor
## in case there are courses that are not shown on the homepage, a 'View all Courses' link should appear % if homepage_course_max and len(courses) > homepage_course_max: % endif % endif