From dbad1881d27156c1dd9e0e6a10cdd5dad166506f Mon Sep 17 00:00:00 2001 From: attiyaishaque Date: Wed, 27 Apr 2016 14:46:30 +0500 Subject: [PATCH] Screenreader added to the button "Upgrade to Verified" and "View Xseries Details" in LMS Dashboard. --- common/djangoapps/student/tests/tests.py | 2 +- lms/templates/dashboard/_dashboard_course_listing.html | 1 + lms/templates/dashboard/_dashboard_xseries_info.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/student/tests/tests.py b/common/djangoapps/student/tests/tests.py index 38e5084196..cb0b94a5ae 100644 --- a/common/djangoapps/student/tests/tests.py +++ b/common/djangoapps/student/tests/tests.py @@ -1155,5 +1155,5 @@ class DashboardTestXSeriesPrograms(ModuleStoreTestCase, ProgramsApiConfigMixin): self.assertContains(response, 'XSeries Program Course', count) self.assertContains(response, 'XSeries Program: Interested in more courses in this subject?', count) self.assertContains(response, 'This course is 1 of 3 courses in the', count) - self.assertContains(response, self.program_name, count) + self.assertContains(response, self.program_name, count * 2) self.assertContains(response, 'View XSeries Details', count) diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html index 92ae61d505..38f503a101 100644 --- a/lms/templates/dashboard/_dashboard_course_listing.html +++ b/lms/templates/dashboard/_dashboard_course_listing.html @@ -358,6 +358,7 @@ from student.helpers import ( ${_("Upgrade to Verified")} +  ${_(course_overview.display_name_with_default)} diff --git a/lms/templates/dashboard/_dashboard_xseries_info.html b/lms/templates/dashboard/_dashboard_xseries_info.html index 76fd05715e..2a9533ff17 100644 --- a/lms/templates/dashboard/_dashboard_xseries_info.html +++ b/lms/templates/dashboard/_dashboard_xseries_info.html @@ -28,6 +28,7 @@ %> + ${program_data['display_name']} ${_("View {category} Details").format(category=display_category)}