Skip to content
Snippets Groups Projects
Commit 514d1059 authored by Calen Pennington's avatar Calen Pennington
Browse files

Refactor dates_banner conditionals slightly

parent 2b2a6cca
Branches
Tags
No related merge requests found
......@@ -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()}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment