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
This commit is contained in:
Waheed Ahmed
2019-11-08 15:09:58 +05:00
parent 923452514b
commit 146c19405a

View File

@@ -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">&nbsp;${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">&nbsp;${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">&nbsp;${course_overview.display_name_with_default}</span></a>
% endif
% else: