Commit f8b835f2 by Brian Talbot

certificates: pruning default asset references

parent 5c0d7718
...@@ -12,42 +12,33 @@ class Migration(DataMigration): ...@@ -12,42 +12,33 @@ class Migration(DataMigration):
Bootstraps the HTML view template with some default configuration parameters Bootstraps the HTML view template with some default configuration parameters
""" """
json_config = """{ json_config = """{
"default": { {
"accomplishment_class_append": "accomplishment--certificate--honorcode", "default": {
"certificate_verify_url_prefix": "https://verify-test.edx.org/cert/", "accomplishment_class_append": "accomplishment--certificate",
"certificate_verify_url_suffix": "/verify.html", "certificate_verify_url_prefix": "https://verify-test.edx.org/cert/",
"company_about_url": "http://www.edx.org/about-us", "certificate_verify_url_suffix": "/verify.html",
"company_courselist_url": "http://www.edx.org/course-list", "company_about_url": "http://www.edx.org/about-us",
"company_careers_url": "http://www.edx.org/jobs", "platform_name": "edX",
"company_contact_url": "http://www.edx.org/contact-us", "company_privacy_url": "http://www.edx.org/edx-privacy-policy",
"platform_name": "edX", "company_tos_url": "http://www.edx.org/edx-terms-service",
"company_privacy_url": "http://www.edx.org/edx-privacy-policy", "company_verified_certificate_url": "http://www.edx.org/verified-certificate",
"company_tos_url": "http://www.edx.org/edx-terms-service", "document_stylesheet_url_application": "/static/certificates/css/style-application.css",
"company_verified_certificate_url": "http://www.edx.org/verified-certificate", "logo_src": "/static/certificates/images/logo-edx.svg",
"document_script_src_modernizr": "https://verify-test.edx.org/v2/static/js/vendor/modernizr-2.6.2.min.js", "logo_url": "http://www.edx.org"
"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", "honor": {
"document_stylesheet_url_application": "https://verify-test.edx.org/v2/static/css/style-application.css", "certificate_type": "Honor Code",
"logo_src": "https://verify-test.edx.org/v2/static/images/logo-edx.svg", "document_body_class_append": "is-honorcode"
"logo_url": "http://www.edx.org" },
}, "verified": {
"honor": { "certificate_type": "Verified",
"certificate_type": "Honor Code", "document_body_class_append": "is-idverified"
"document_body_class_append": "is-honorcode" },
}, "xseries": {
"verified": { "certificate_type": "XSeries",
"certificate_type": "Verified", "document_body_class_append": "is-xseries"
"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"
}
}""" }"""
orm.CertificateHtmlViewConfiguration.objects.create( orm.CertificateHtmlViewConfiguration.objects.create(
configuration=json_config, configuration=json_config,
......
...@@ -24,22 +24,16 @@ class CertificateHtmlViewConfigurationFactory(DjangoModelFactory): ...@@ -24,22 +24,16 @@ class CertificateHtmlViewConfigurationFactory(DjangoModelFactory):
enabled = True enabled = True
configuration = """{ configuration = """{
"default": { "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_prefix": "https://verify-test.edx.org/cert/",
"certificate_verify_url_suffix": "/verify.html", "certificate_verify_url_suffix": "/verify.html",
"company_about_url": "http://www.edx.org/about-us", "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", "platform_name": "edX",
"company_privacy_url": "http://www.edx.org/edx-privacy-policy", "company_privacy_url": "http://www.edx.org/edx-privacy-policy",
"company_tos_url": "http://www.edx.org/edx-terms-service", "company_tos_url": "http://www.edx.org/edx-terms-service",
"company_verified_certificate_url": "http://www.edx.org/verified-certificate", "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_application": "/static/certificates/css/style-application.css",
"document_stylesheet_url_normalize": "https://verify-test.edx.org/v2/static/css/vendor/normalize.css", "logo_src": "/static/certificates/images/logo-edx.svg",
"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" "logo_url": "http://www.edx.org"
}, },
"honor": { "honor": {
...@@ -52,11 +46,6 @@ class CertificateHtmlViewConfigurationFactory(DjangoModelFactory): ...@@ -52,11 +46,6 @@ class CertificateHtmlViewConfigurationFactory(DjangoModelFactory):
}, },
"xseries": { "xseries": {
"certificate_type": "XSeries", "certificate_type": "XSeries",
"document_body_class_append": "is-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"
} }
}""" }"""
<link rel="stylesheet" href="${document_stylesheet_url_normalize}" />
<link rel="stylesheet" href="${document_stylesheet_url_fontawesome}" />
<link rel="stylesheet" href="${document_stylesheet_url_application}" /> <link rel="stylesheet" href="${document_stylesheet_url_application}" />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment