From d3bd327f3355cf84e71e737e2615470caac701d4 Mon Sep 17 00:00:00 2001 From: Matt Tuchfarber Date: Wed, 18 Mar 2020 13:24:39 -0400 Subject: [PATCH] Add coaching aside to edx.org theme dashboard. --- lms/static/sass/multicourse/_dashboard.scss | 24 +++++++++++++++++++++ themes/edx.org/lms/templates/dashboard.html | 16 ++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/lms/static/sass/multicourse/_dashboard.scss b/lms/static/sass/multicourse/_dashboard.scss index 5a95059b16..f849d24272 100644 --- a/lms/static/sass/multicourse/_dashboard.scss +++ b/lms/static/sass/multicourse/_dashboard.scss @@ -568,6 +568,30 @@ } } + .wrapper-coaching { + border: 1px solid $border-color-l3; + margin: 20px 0; + + .coaching-signup { + padding: 20px; + + .coaching-prompt { + font-size: 20px; + line-height: 28px; + font-weight: bold; + } + + .coaching-link .btn-neutral { + display: block; + text-align: center; + margin: 20px 20px 0 20px; + border-radius: 20px; + padding: 10px; + border: 1px solid theme-color('primary'); + } + } + } + .profile-sidebar { ul { padding: 0; diff --git a/themes/edx.org/lms/templates/dashboard.html b/themes/edx.org/lms/templates/dashboard.html index 5bb86c82eb..8afc4b7543 100644 --- a/themes/edx.org/lms/templates/dashboard.html +++ b/themes/edx.org/lms/templates/dashboard.html @@ -288,6 +288,22 @@ from student.models import CourseEnrollment % endif + <% account_mfe_url = getattr(settings, 'ACCOUNT_MICROFRONTEND_URL', '') or '' %> + % if plugins.get("coaching", {}).get("show_coaching_aside"): +
+ +
+ % endif + % if display_sidebar_on_dashboard: