certificates: pruning default asset references
This commit is contained in:
@@ -12,42 +12,33 @@ class Migration(DataMigration):
|
||||
Bootstraps the HTML view template with some default configuration parameters
|
||||
"""
|
||||
json_config = """{
|
||||
"default": {
|
||||
"accomplishment_class_append": "accomplishment--certificate--honorcode",
|
||||
"certificate_verify_url_prefix": "https://verify-test.edx.org/cert/",
|
||||
"certificate_verify_url_suffix": "/verify.html",
|
||||
"company_about_url": "http://www.edx.org/about-us",
|
||||
"company_courselist_url": "http://www.edx.org/course-list",
|
||||
"company_careers_url": "http://www.edx.org/jobs",
|
||||
"company_contact_url": "http://www.edx.org/contact-us",
|
||||
"platform_name": "edX",
|
||||
"company_privacy_url": "http://www.edx.org/edx-privacy-policy",
|
||||
"company_tos_url": "http://www.edx.org/edx-terms-service",
|
||||
"company_verified_certificate_url": "http://www.edx.org/verified-certificate",
|
||||
"document_script_src_modernizr": "https://verify-test.edx.org/v2/static/js/vendor/modernizr-2.6.2.min.js",
|
||||
"document_stylesheet_url_normalize": "https://verify-test.edx.org/v2/static/css/vendor/normalize.css",
|
||||
"document_stylesheet_url_fontawesome": "https://verify-test.edx.org/v2/static/css/vendor/font-awesome.css",
|
||||
"document_stylesheet_url_application": "https://verify-test.edx.org/v2/static/css/style-application.css",
|
||||
"logo_src": "https://verify-test.edx.org/v2/static/images/logo-edx.svg",
|
||||
"logo_url": "http://www.edx.org"
|
||||
},
|
||||
"honor": {
|
||||
"certificate_type": "Honor Code",
|
||||
"document_body_class_append": "is-honorcode"
|
||||
},
|
||||
"verified": {
|
||||
"certificate_type": "Verified",
|
||||
"document_body_class_append": "is-idverified"
|
||||
},
|
||||
"xseries": {
|
||||
"certificate_type": "XSeries",
|
||||
"document_body_class_append": "is-xseries",
|
||||
"document_script_src_modernizr": "https://verify-test.edx.org/xseries/static/js/vendor/modernizr-2.6.2.min.js",
|
||||
"document_stylesheet_url_normalize": "https://verify-test.edx.org/xseries/static/css/vendor/normalize.css",
|
||||
"document_stylesheet_url_fontawesome": "https://verify-test.edx.org/xseries/static/css/vendor/font-awesome.css",
|
||||
"document_stylesheet_url_application": "https://verify-test.edx.org/xseries/static/css/style-application.css",
|
||||
"logo_src": "https://verify-test.edx.org/xseries/static/images/logo-edx.svg"
|
||||
}
|
||||
{
|
||||
"default": {
|
||||
"accomplishment_class_append": "accomplishment--certificate",
|
||||
"certificate_verify_url_prefix": "https://verify-test.edx.org/cert/",
|
||||
"certificate_verify_url_suffix": "/verify.html",
|
||||
"company_about_url": "http://www.edx.org/about-us",
|
||||
"platform_name": "edX",
|
||||
"company_privacy_url": "http://www.edx.org/edx-privacy-policy",
|
||||
"company_tos_url": "http://www.edx.org/edx-terms-service",
|
||||
"company_verified_certificate_url": "http://www.edx.org/verified-certificate",
|
||||
"document_stylesheet_url_application": "/static/certificates/css/style-application.css",
|
||||
"logo_src": "/static/certificates/images/logo-edx.svg",
|
||||
"logo_url": "http://www.edx.org"
|
||||
},
|
||||
"honor": {
|
||||
"certificate_type": "Honor Code",
|
||||
"document_body_class_append": "is-honorcode"
|
||||
},
|
||||
"verified": {
|
||||
"certificate_type": "Verified",
|
||||
"document_body_class_append": "is-idverified"
|
||||
},
|
||||
"xseries": {
|
||||
"certificate_type": "XSeries",
|
||||
"document_body_class_append": "is-xseries"
|
||||
}
|
||||
}
|
||||
}"""
|
||||
orm.CertificateHtmlViewConfiguration.objects.create(
|
||||
configuration=json_config,
|
||||
|
||||
@@ -24,22 +24,16 @@ class CertificateHtmlViewConfigurationFactory(DjangoModelFactory):
|
||||
enabled = True
|
||||
configuration = """{
|
||||
"default": {
|
||||
"accomplishment_class_append": "accomplishment--certificate--honorcode",
|
||||
"accomplishment_class_append": "accomplishment--certificate",
|
||||
"certificate_verify_url_prefix": "https://verify-test.edx.org/cert/",
|
||||
"certificate_verify_url_suffix": "/verify.html",
|
||||
"company_about_url": "http://www.edx.org/about-us",
|
||||
"company_courselist_url": "http://www.edx.org/course-list",
|
||||
"company_careers_url": "http://www.edx.org/jobs",
|
||||
"company_contact_url": "http://www.edx.org/contact-us",
|
||||
"platform_name": "edX",
|
||||
"company_privacy_url": "http://www.edx.org/edx-privacy-policy",
|
||||
"company_tos_url": "http://www.edx.org/edx-terms-service",
|
||||
"company_verified_certificate_url": "http://www.edx.org/verified-certificate",
|
||||
"document_script_src_modernizr": "https://verify-test.edx.org/v2/static/js/vendor/modernizr-2.6.2.min.js",
|
||||
"document_stylesheet_url_normalize": "https://verify-test.edx.org/v2/static/css/vendor/normalize.css",
|
||||
"document_stylesheet_url_fontawesome": "https://verify-test.edx.org/v2/static/css/vendor/font-awesome.css",
|
||||
"document_stylesheet_url_application": "https://verify-test.edx.org/v2/static/css/style-application.css",
|
||||
"logo_src": "https://verify-test.edx.org/v2/static/images/logo-edx.svg",
|
||||
"document_stylesheet_url_application": "/static/certificates/css/style-application.css",
|
||||
"logo_src": "/static/certificates/images/logo-edx.svg",
|
||||
"logo_url": "http://www.edx.org"
|
||||
},
|
||||
"honor": {
|
||||
@@ -52,11 +46,6 @@ class CertificateHtmlViewConfigurationFactory(DjangoModelFactory):
|
||||
},
|
||||
"xseries": {
|
||||
"certificate_type": "XSeries",
|
||||
"document_body_class_append": "is-xseries",
|
||||
"document_script_src_modernizr": "https://verify-test.edx.org/xseries/static/js/vendor/modernizr-2.6.2.min.js",
|
||||
"document_stylesheet_url_normalize": "https://verify-test.edx.org/xseries/static/css/vendor/normalize.css",
|
||||
"document_stylesheet_url_fontawesome": "https://verify-test.edx.org/xseries/static/css/vendor/font-awesome.css",
|
||||
"document_stylesheet_url_application": "https://verify-test.edx.org/xseries/static/css/style-application.css",
|
||||
"logo_src": "https://verify-test.edx.org/xseries/static/images/logo-edx.svg"
|
||||
"document_body_class_append": "is-xseries"
|
||||
}
|
||||
}"""
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
<link rel="stylesheet" href="${document_stylesheet_url_normalize}" />
|
||||
<link rel="stylesheet" href="${document_stylesheet_url_fontawesome}" />
|
||||
<link rel="stylesheet" href="${document_stylesheet_url_application}" />
|
||||
|
||||
Reference in New Issue
Block a user