From 146c19405ae83930fa41df9dd446b9c951d96057 Mon Sep 17 00:00:00 2001 From: Waheed Ahmed 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 ac93a2100c..72246ec5ea 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_
% 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: + ${_('View Archived Course')} ${course_overview.display_name_with_default} + % elif not is_unfulfilled_entitlement: ${_('View Archived Course')} ${course_overview.display_name_with_default} - % else: - ${_('View Archived Course')} ${course_overview.display_name_with_default} % endif % else: