From 4e32bd5abbb023e6c5daef6fa42a0d571a14b6ea Mon Sep 17 00:00:00 2001 From: christopher lee Date: Tue, 14 Nov 2017 14:52:49 -0500 Subject: [PATCH] Fix aria label for course details on the course dashboard --- .../student/tests/test_verification_status.py | 3 ++- .../dashboard/_dashboard_course_listing.html | 11 +++++------ .../_dashboard_navigation_courses.html | 2 -- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/common/djangoapps/student/tests/test_verification_status.py b/common/djangoapps/student/tests/test_verification_status.py index 40cbcb8433..08093f2448 100644 --- a/common/djangoapps/student/tests/test_verification_status.py +++ b/common/djangoapps/student/tests/test_verification_status.py @@ -371,7 +371,8 @@ class TestCourseVerificationStatus(UrlResetMixin, ModuleStoreTestCase): # Verify that the correct banner color is rendered self.assertContains( response, - "
".format(self.MODE_CLASSES[status]) + "
".format( + self.MODE_CLASSES[status], self.course.id) ) # Verify that the correct copy is rendered on the dashboard diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html index e8030ea9ca..2b9764ca33 100644 --- a/lms/templates/dashboard/_dashboard_course_listing.html +++ b/lms/templates/dashboard/_dashboard_course_listing.html @@ -59,10 +59,9 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_ lang="${course_overview.language}" % endif > -
+
<% course_target = reverse(course_home_url_name(course_overview.id), args=[unicode(course_overview.id)]) %> -
-

${_('Course details')}

+
-

+

% if show_courseware_link: % if not is_course_blocked: ${course_overview.display_name_with_default} @@ -264,7 +263,7 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_

- +
% if related_programs: @@ -411,7 +410,7 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_ % endif
-
+