diff --git a/lms/templates/courses_list.html b/lms/templates/courses_list.html new file mode 100644 index 0000000000..5b90666e9a --- /dev/null +++ b/lms/templates/courses_list.html @@ -0,0 +1,27 @@ +<%namespace name='static' file='static_content.html'/> +<%! from django.utils.translation import ugettext as _ %> + +
+
+ + % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'): +
+
    + ## limiting the course number by using HOMEPAGE_COURSE_MAX as the maximum number of courses + %for course in courses[:settings.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 settings.HOMEPAGE_COURSE_MAX and len(courses) > settings.HOMEPAGE_COURSE_MAX: + + % endif + % endif + +
+
diff --git a/lms/templates/index.html b/lms/templates/index.html index 8fc76a4c59..ca029b1e97 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -61,30 +61,12 @@ from microsite_configuration import microsite -
-
+ <% + # allow for microsite override of the courses list + courses_list = microsite.get_template_path('courses_list.html') + %> + <%include file="${courses_list}" /> - % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'): -
-
    - ## limiting the course number by using HOMEPAGE_COURSE_MAX as the maximum number of courses - %for course in courses[:settings.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 settings.HOMEPAGE_COURSE_MAX and len(courses) > settings.HOMEPAGE_COURSE_MAX: - - % endif - % endif - -
-