From 514d10599df8dbbe16c032cd8347c1a1e8c5eb82 Mon Sep 17 00:00:00 2001 From: Calen Pennington <cale@edx.org> Date: Thu, 4 Jun 2020 14:55:18 -0400 Subject: [PATCH] Refactor dates_banner conditionals slightly --- lms/templates/dates_banner.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lms/templates/dates_banner.html b/lms/templates/dates_banner.html index 3c79da9fbc8..b090cbf1d93 100644 --- a/lms/templates/dates_banner.html +++ b/lms/templates/dates_banner.html @@ -87,16 +87,18 @@ additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' </%def> % if not is_archived: - % if on_dates_tab and not missed_deadlines and getattr(course, 'self_paced', False): + % if on_dates_tab and not missed_deadlines: + %if getattr(course, 'self_paced', False): <div class="dates-banner"> <div class="dates-banner-text"> <strong>${_("We've built a suggested schedule to help you stay on track.")}</strong> ${_("But don't worry—it's flexible so you can learn at your own pace. If you happen to fall behind on our suggested dates, you'll be able to adjust them to keep yourself on track.")} </div> </div> - % endif - % if on_dates_tab and content_type_gating_enabled and not missed_deadlines: - ${upgrade_to_complete_graded_banner()} + % endif + % if content_type_gating_enabled: + ${upgrade_to_complete_graded_banner()} + % endif % elif missed_deadlines: % if missed_gated_content: ${upgrade_to_reset_banner()} -- GitLab