From 146c19405ae83930fa41df9dd446b9c951d96057 Mon Sep 17 00:00:00 2001 From: Waheed Ahmed <waheed.ahmed@arbisoft.com> Date: Fri, 8 Nov 2019 15:09:58 +0500 Subject: [PATCH] Remove View Archived Course button from unfulfilled entitlements. Remove View Archived Course button from unfulfilled entitlements if there is no session availabe to join. PROD-580 --- lms/templates/dashboard/_dashboard_course_listing.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html index ac93a2100c7..72246ec5ea5 100644 --- a/lms/templates/dashboard/_dashboard_course_listing.html +++ b/lms/templates/dashboard/_dashboard_course_listing.html @@ -177,10 +177,10 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_ <div class="course-actions"> % if (show_courseware_link or is_unfulfilled_entitlement) and not is_course_expired: % if course_overview.has_ended(): - % if not is_course_blocked: + % if is_course_blocked: + <a class="enter-course-blocked archived course-target-link" data-course-key="${enrollment.course_id}">${_('View Archived Course')}<span class="sr"> ${course_overview.display_name_with_default}</span></a> + % elif not is_unfulfilled_entitlement: <a href="${course_target}" class="enter-course archived course-target-link" data-course-key="${enrollment.course_id}">${_('View Archived Course')}<span class="sr"> ${course_overview.display_name_with_default}</span></a> - % else: - <a class="enter-course-blocked archived course-target-link" data-course-key="${enrollment.course_id}">${_('View Archived Course')}<span class="sr"> ${course_overview.display_name_with_default}</span></a> % endif % else: -- GitLab