diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index a827c6999cea..4023a7f746a6 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -227,7 +227,7 @@

  • ${_("Classes Start")}

    - % if isinstance(course_start_date, str): + % if isinstance(course_start_date, basestring): ${course_start_date} % else: <% @@ -239,7 +239,7 @@

    % endif ## We plan to ditch end_date (which is not stored in course metadata), ## but for backwards compatibility, show about/end_date blob if it exists. - % if get_course_about_section(request, course, "end_date") or course.end: + % if course.end: <% course_end_date = course.end %> @@ -251,7 +251,7 @@

    ${course_end_date} % else: <% - course_date_string = course_end_date.strftime('%Y-%m-%dT%H:%M:%S%z') + course_date_string = course.start.strftime('%Y-%m-%dT%H:%M:%S%z') %> % endif diff --git a/lms/templates/index.html b/lms/templates/index.html index db5389e7a09d..c06fe4f0006c 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -17,10 +17,7 @@ % if homepage_overlay_html: ${homepage_overlay_html | n, decode.utf8} % else: - ## Translators: 'Open edX' is a registered trademark, please keep this untranslated. See http://open.edx.org for more information. -

    ${Text(_(u"Welcome to the Open edX{registered_trademark} platform!")).format(registered_trademark=HTML("®"))}

    - ## Translators: 'Open edX' is a registered trademark, please keep this untranslated. See http://open.edx.org for more information. -

    ${_("It works! This is the default homepage for this Open edX instance.")}

    + <%include file="index_overlay.html" /> % endif % if settings.FEATURES.get('ENABLE_COURSE_DISCOVERY'): @@ -38,13 +35,7 @@

    ${Text(_(u"Welcome to the Open edX{registered_trademark} platform!")).format - % if show_homepage_promo_video: - -
    -
    -
    -
    - % endif + <%include file="index_promo_video.html" /> diff --git a/lms/templates/index_overlay.html b/lms/templates/index_overlay.html new file mode 100644 index 000000000000..55a440166b8d --- /dev/null +++ b/lms/templates/index_overlay.html @@ -0,0 +1,9 @@ +<%! +from django.utils.translation import ugettext as _ +from openedx.core.djangolib.markup import HTML, Text +%> + +## Translators: 'Open edX' is a registered trademark, please keep this untranslated. See http://open.edx.org for more information. +

    ${Text(_(u"Welcome to the Open edX{registered_trademark} platform!")).format(registered_trademark=HTML("®"))}

    +## Translators: 'Open edX' is a registered trademark, please keep this untranslated. See http://open.edx.org for more information. +

    ${_("It works! This is the default homepage for this Open edX instance.")}

    diff --git a/lms/templates/index_promo_video.html b/lms/templates/index_promo_video.html new file mode 100644 index 000000000000..72d818579d3f --- /dev/null +++ b/lms/templates/index_promo_video.html @@ -0,0 +1,7 @@ +% if show_homepage_promo_video: + +
    +
    +
    +
    +% endif diff --git a/lms/templates/problem_ajax.html b/lms/templates/problem_ajax.html index 941e0855dfde..031ddbeecfca 100644 --- a/lms/templates/problem_ajax.html +++ b/lms/templates/problem_ajax.html @@ -6,4 +6,8 @@ data-attempts-used="${attempts_used}" data-content="${content | h}" data-graded="${graded}"> +

    + + Loading… +