diff --git a/cms/templates/certificates.html b/cms/templates/certificates.html index 6cfbaaf3c8..ee6f1786e6 100644 --- a/cms/templates/certificates.html +++ b/cms/templates/certificates.html @@ -1,10 +1,10 @@ <%inherit file="base.html" /> <%def name="online_help_token()"><% return "certificates" %> <%namespace name='static' file='static_content.html'/> -<%! import json %> <%! - from contentstore import utils - from django.utils.translation import ugettext as _ +import json +from contentstore import utils +from django.utils.translation import ugettext as _ %> <%block name="title">${_("Course Certificates")} diff --git a/cms/templates/course-create-rerun.html b/cms/templates/course-create-rerun.html index 456d09cb26..44f828192f 100644 --- a/cms/templates/course-create-rerun.html +++ b/cms/templates/course-create-rerun.html @@ -1,8 +1,10 @@ <%inherit file="base.html" /> <%def name="online_help_token()"><% return "course_rerun" %> -<%! from django.utils.translation import ugettext as _ %> -<%! from django.core.urlresolvers import reverse %> -<%! from django.template.defaultfilters import escapejs %> +<%! +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +from django.template.defaultfilters import escapejs +%> <%block name="title">${_("Create a Course Rerun of:")} <%block name="bodyclass">is-signedin view-course-create view-course-create-rerun diff --git a/cms/templates/course_info.html b/cms/templates/course_info.html index e9825ea400..bbb5e12d72 100644 --- a/cms/templates/course_info.html +++ b/cms/templates/course_info.html @@ -1,11 +1,11 @@ -<%! - from django.utils.translation import ugettext as _ - from django.template.defaultfilters import escapejs -%> <%inherit file="base.html" /> <%def name="online_help_token()"><% return "updates" %> <%namespace name='static' file='static_content.html'/> -<%! import json %> +<%! +import json +from django.utils.translation import ugettext as _ +from django.template.defaultfilters import escapejs +%> <%block name="title">${_("Course Updates")} diff --git a/cms/templates/error.html b/cms/templates/error.html index 09bb830fa6..99191a3d4d 100644 --- a/cms/templates/error.html +++ b/cms/templates/error.html @@ -1,6 +1,9 @@ -<%! from django.utils.translation import ugettext as _ %> <%inherit file="base.html" /> -<%! from django.core.urlresolvers import reverse %> +<%! +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +from django.conf import settings +%> <%block name="bodyclass">error <%block name="title"> % if error == '404': @@ -11,8 +14,6 @@ <%! -from django.conf import settings - if settings.TENDER_DOMAIN: help_link_start = ''.format( domain=settings.TENDER_DOMAIN, diff --git a/cms/templates/group_configurations.html b/cms/templates/group_configurations.html index 74e3695483..865c8959d6 100644 --- a/cms/templates/group_configurations.html +++ b/cms/templates/group_configurations.html @@ -2,10 +2,10 @@ <%def name="content_groups_help_token()"><% return "content_groups" %> <%def name="experiment_group_configurations_help_token()"><% return "group_configurations" %> <%namespace name='static' file='static_content.html'/> -<%! import json %> <%! - from contentstore import utils - from django.utils.translation import ugettext as _ +import json +from contentstore import utils +from django.utils.translation import ugettext as _ %> <%block name="title">${_("Group Configurations")} diff --git a/cms/templates/manage_users.html b/cms/templates/manage_users.html index 64f3601c50..2a898fc9b9 100644 --- a/cms/templates/manage_users.html +++ b/cms/templates/manage_users.html @@ -1,7 +1,9 @@ -<%! import json %> -<%! from django.utils.translation import ugettext as _ %> -<%! from django.core.urlresolvers import reverse %> <%inherit file="base.html" /> +<%! +import json +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +%> <%def name="online_help_token()"><% return "team_course" %> <%block name="title">${_("Course Team Settings")} <%block name="bodyclass">is-signedin course users view-team diff --git a/cms/templates/manage_users_lib.html b/cms/templates/manage_users_lib.html index 2d40585775..7c8ed187a1 100644 --- a/cms/templates/manage_users_lib.html +++ b/cms/templates/manage_users_lib.html @@ -1,7 +1,9 @@ -<%! import json %> -<%! from django.utils.translation import ugettext as _ %> -<%! from django.core.urlresolvers import reverse %> <%inherit file="base.html" /> +<%! +import json +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +%> <%def name="online_help_token()"><% return "team_library" %> <%block name="title">${_("Library User Access")} <%block name="bodyclass">is-signedin course users view-team diff --git a/cms/templates/register.html b/cms/templates/register.html index 609dbc141e..0ff0024179 100644 --- a/cms/templates/register.html +++ b/cms/templates/register.html @@ -1,7 +1,9 @@ -<%! from django.utils.translation import ugettext as _ %> <%inherit file="base.html" /> <%def name="online_help_token()"><% return "register" %> -<%! from django.core.urlresolvers import reverse %> +<%! +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +%> <%block name="title">${_("Sign Up")} <%block name="bodyclass">not-signedin view-signup diff --git a/cms/templates/registration/activation_complete.html b/cms/templates/registration/activation_complete.html index 92a0e180f7..242547e6f0 100644 --- a/cms/templates/registration/activation_complete.html +++ b/cms/templates/registration/activation_complete.html @@ -1,6 +1,8 @@ -<%! from django.utils.translation import ugettext as _ %> -<%! from django.core.urlresolvers import reverse %> <%inherit file="../base.html" /> +<%! +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +%> <%namespace name='static' file='../static_content.html'/> diff --git a/cms/templates/textbooks.html b/cms/templates/textbooks.html index 55712d7a3b..6fe1f5ac88 100644 --- a/cms/templates/textbooks.html +++ b/cms/templates/textbooks.html @@ -1,8 +1,10 @@ <%inherit file="base.html" /> <%def name="online_help_token()"><% return "textbooks" %> <%namespace name='static' file='static_content.html'/> -<%! import json %> -<%! from django.utils.translation import ugettext as _ %> +<%! +import json +from django.utils.translation import ugettext as _ +%> <%block name="title">${_("Textbooks")} <%block name="bodyclass">is-signedin course view-textbooks diff --git a/cms/templates/ux/reference/course-create-rerun.html b/cms/templates/ux/reference/course-create-rerun.html index 0757969a5e..527b08004a 100644 --- a/cms/templates/ux/reference/course-create-rerun.html +++ b/cms/templates/ux/reference/course-create-rerun.html @@ -4,8 +4,10 @@ <%include file="_note-usage.html" /> -<%! from django.utils.translation import ugettext as _ %> -<%! from django.core.urlresolvers import reverse %> +<%! +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +%> <%block name="title">[template] Create a Course Rerun of HarvardX SW12.2x T2_2014 <%block name="bodyclass">is-signedin view-course-create view-course-create-rerun diff --git a/cms/templates/widgets/footer.html b/cms/templates/widgets/footer.html index ae75880557..4ddfd3763b 100644 --- a/cms/templates/widgets/footer.html +++ b/cms/templates/widgets/footer.html @@ -1,5 +1,7 @@ -<%! from django.core.urlresolvers import reverse %> -<%! from django.utils.translation import ugettext as _ %> +<%! +from django.utils.translation import ugettext as _ +from django.core.urlresolvers import reverse +%>