diff --git a/data_fixtures/migrations/0015_unit_page_copy_updates.py b/data_fixtures/migrations/0015_unit_page_copy_updates.py new file mode 100644 index 0000000000..769ad6cc9d --- /dev/null +++ b/data_fixtures/migrations/0015_unit_page_copy_updates.py @@ -0,0 +1,61 @@ +# Generated by Django 4.2.14 on 2024-07-16 17:30 + +from django.db import migrations + +fixtures = [ + { + "name": "mitpe", + "offeror_configuration": { + "value_prop": ( + "MIT Professional Education is a leader in technology and " + "engineering education for working professionals pursuing " + "career advancement, and organizations seeking to meet modern-day " + "challenges by expanding the knowledge and skills of their employees. " + "Courses are delivered in a range of formats—in-person (on-campus " + "and live online), online, and through hybrid approaches—to " + "meet the needs of today's learners." + ), + }, + "channel_configuration": { + "sub_heading": ( + "MIT Professional Education is a leader in technology and " + "engineering education for working professionals pursuing " + "career advancement, and organizations seeking to meet modern-day " + "challenges by expanding the knowledge and skills of their employees. " + "Courses are delivered in a range of formats—in-person (on-campus " + "and live online), online, and through hybrid approaches—to " + "meet the needs of today's learners." + ), + }, + }, +] + + +def update_copy(apps, schema_editor): + Channel = apps.get_model("channels", "Channel") + LearningResourceOfferor = apps.get_model( + "learning_resources", "LearningResourceOfferor" + ) + for fixture in fixtures: + channel_configuration_updates = fixture["channel_configuration"] + offeror_configuration_updates = fixture["offeror_configuration"] + channel = Channel.objects.get(name=fixture["name"]) + if Channel.objects.filter(name=fixture["name"]).exists(): + for key, val in channel_configuration_updates.items(): + channel.configuration[key] = val + channel.save() + if LearningResourceOfferor.objects.filter(code=fixture["name"]).exists(): + offeror = LearningResourceOfferor.objects.get(code=fixture["name"]) + for key, val in offeror_configuration_updates.items(): + setattr(offeror, key, val) + offeror.save() + + +class Migration(migrations.Migration): + dependencies = [ + ("data_fixtures", "0014_add_department_SP"), + ] + + operations = [ + migrations.RunPython(update_copy, migrations.RunPython.noop), + ] diff --git a/frontends/mit-learn/public/images/mit-block-logo.jpg b/frontends/mit-learn/public/images/mit-block-logo.jpg new file mode 100644 index 0000000000..5e61d900e8 Binary files /dev/null and b/frontends/mit-learn/public/images/mit-block-logo.jpg differ diff --git a/frontends/mit-learn/public/images/mit-learn-logo.jpg b/frontends/mit-learn/public/images/mit-learn-logo.jpg new file mode 100644 index 0000000000..488eae1e1b Binary files /dev/null and b/frontends/mit-learn/public/images/mit-learn-logo.jpg differ diff --git a/frontends/mit-learn/public/images/mit-logo-learn.jpg b/frontends/mit-learn/public/images/mit-logo-learn.jpg deleted file mode 100644 index eb5b0bc618..0000000000 Binary files a/frontends/mit-learn/public/images/mit-logo-learn.jpg and /dev/null differ diff --git a/main/templates/email/email_base.html b/main/templates/email/email_base.html index c2646e8720..5ee577f21f 100644 --- a/main/templates/email/email_base.html +++ b/main/templates/email/email_base.html @@ -249,49 +249,76 @@
- {% block logo %}
-
-
- {% endblock %}
+ | ||
|
+ |
+ + |
+ |