From 2d1bb9bf7f9a18a49b240aff9e83c2648239f717 Mon Sep 17 00:00:00 2001 From: Ahsan Ulhaq Date: Tue, 28 Feb 2017 16:56:52 +0500 Subject: [PATCH] Hidden html sontent on the dashboard are rendered ECOM-6977 --- common/djangoapps/student/views.py | 4 +++ lms/templates/dashboard.html | 36 +++++++++++---------- themes/edx.org/lms/templates/dashboard.html | 36 +++++++++++---------- 3 files changed, 42 insertions(+), 34 deletions(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index 616d732bfe..559f7e68c8 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -800,6 +800,9 @@ def dashboard(request): else: redirect_message = '' + valid_verification_statuses = ['approved', 'must_reverify', 'pending', 'expired'] + display_sidebar_on_dashboard = len(order_history_list) or verification_status in valid_verification_statuses + context = { 'enrollment_message': enrollment_message, 'redirect_message': redirect_message, @@ -833,6 +836,7 @@ def dashboard(request): 'show_program_listing': ProgramsApiConfig.current().show_program_listing, 'disable_courseware_js': True, 'display_course_modes_on_dashboard': enable_verified_certificates and display_course_modes_on_dashboard, + 'display_sidebar_on_dashboard': display_sidebar_on_dashboard, } ecommerce_service = EcommerceService() diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 002e12a730..cc8daffd47 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -155,27 +155,29 @@ from openedx.core.djangolib.markup import HTML, Text
% endif -
-
- -
-
+ % endif diff --git a/themes/edx.org/lms/templates/dashboard.html b/themes/edx.org/lms/templates/dashboard.html index db28f630fa..96376da425 100644 --- a/themes/edx.org/lms/templates/dashboard.html +++ b/themes/edx.org/lms/templates/dashboard.html @@ -173,27 +173,29 @@ from openedx.core.djangoapps.theming import helpers as theming_helpers % endif -
-
- -
-
- + % endif