<%namespacename='static'file='static_content.html'/><%!fromdjango.utils.translationimportugettextas_%><sectionclass="courses-container"><sectionclass="highlighted-courses"> % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):<sectionclass="courses"><ulclass="courses-listing"> ## limiting the course number by using HOMEPAGE_COURSE_MAX as the maximum number of courses %for course in courses[:settings.HOMEPAGE_COURSE_MAX]:<liclass="courses-listing-item"><%includefile="course.html"args="course=course"/></li> %endfor</ul></section> ## in case there are courses that are not shown on the homepage, a 'View all Courses' link should appear % if settings.HOMEPAGE_COURSE_MAX and len(courses) > settings.HOMEPAGE_COURSE_MAX:<divclass="courses-more"><aclass="courses-more-cta"href="${marketing_link('COURSES')}"> ${_("View all Courses")} </a></div> % endif % endif</section></section>