Commit 85f64014 by Sanford Student

only show nav utils if populated

parent 744fea8a
...@@ -74,8 +74,8 @@ ${HTML(fragment.foot_html())} ...@@ -74,8 +74,8 @@ ${HTML(fragment.foot_html())}
${HTML(fragment.body_html())} ${HTML(fragment.body_html())}
</section> </section>
</div> </div>
% if course.show_calculator or is_edxnotes_enabled(course):
<nav class="nav-utilities ${"has-utility-calculator" if course.show_calculator else ""}" aria-label="${_('Course Utilities')}"> <nav class="nav-utilities ${"has-utility-calculator" if course.show_calculator else ""}" aria-label="${_('Course Utilities')}">
## Utility: Notes ## Utility: Notes
% if is_edxnotes_enabled(course): % if is_edxnotes_enabled(course):
<%include file="/edxnotes/toggle_notes.html" args="course=course"/> <%include file="/edxnotes/toggle_notes.html" args="course=course"/>
...@@ -85,6 +85,7 @@ ${HTML(fragment.foot_html())} ...@@ -85,6 +85,7 @@ ${HTML(fragment.foot_html())}
% if course.show_calculator: % if course.show_calculator:
<%include file="/calculator/toggle_calculator.html" /> <%include file="/calculator/toggle_calculator.html" />
% endif % endif
</nav> </nav>
% endif
<%include file="../modal/accessible_confirm.html" /> <%include file="../modal/accessible_confirm.html" />
...@@ -207,8 +207,8 @@ ${HTML(fragment.foot_html())} ...@@ -207,8 +207,8 @@ ${HTML(fragment.foot_html())}
</div> </div>
% endif % endif
</div> </div>
% if course.show_calculator or is_edxnotes_enabled(course):
<nav class="nav-utilities ${"has-utility-calculator" if course.show_calculator else ""}" aria-label="${_('Course Utilities')}"> <nav class="nav-utilities ${"has-utility-calculator" if course.show_calculator else ""}" aria-label="${_('Course Utilities')}">
## Utility: Notes ## Utility: Notes
% if is_edxnotes_enabled(course): % if is_edxnotes_enabled(course):
<%include file="/edxnotes/toggle_notes.html" args="course=course"/> <%include file="/edxnotes/toggle_notes.html" args="course=course"/>
...@@ -218,6 +218,6 @@ ${HTML(fragment.foot_html())} ...@@ -218,6 +218,6 @@ ${HTML(fragment.foot_html())}
% if course.show_calculator: % if course.show_calculator:
<%include file="/calculator/toggle_calculator.html" /> <%include file="/calculator/toggle_calculator.html" />
% endif % endif
</nav> </nav>
% endif
<%include file="../modal/accessible_confirm.html" /> <%include file="../modal/accessible_confirm.html" />
Markdown is supported
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