Add chapter index to dom

This commit is contained in:
Matthew Piatetsky
2018-03-28 16:56:40 -04:00
parent c9c97e58c5
commit 734e385030

View File

@@ -176,7 +176,7 @@ ${HTML(fragment.foot_html())}
<span class="icon fa fa-angle-right" aria-hidden="true"></span>
% endif
% if chapter:
<span class="nav-item nav-item-chapter">
<span class="nav-item nav-item-chapter" data-course-position="${course.position}" data-chapter-position="${chapter.position}">
<a href="${course_url}#${unicode(chapter.location)}">${chapter.display_name_with_default}</a>
</span>
<span class="icon fa fa-angle-right" aria-hidden="true"></span>