Files
edx-platform/lms/templates/vert_module.html
J. Cliff Dyer 4946b6b296 Track viewing of individual blocks.
* Implement a ViewedEvent handling system which calls handlers when a
  block has been viewed for 5 seconds (configurable).
* Hook up Verticals to register their children blocks with this event,
  and submit completions once seen.

OSPR-2093
OC-3358
2018-02-15 15:13:48 -05:00

26 lines
696 B
HTML

<%page expression_filter="h"/>
<%! from openedx.core.djangolib.markup import HTML %>
%if unit_title:
<h2 class="hd hd-2 unit-title">${unit_title}</h2>
% endif
% if show_bookmark_button:
<%include file='bookmark_button.html' args="bookmark_id=bookmark_id, is_bookmarked=bookmarked"/>
% endif
<div class="vert-mod" \
% if completion_delay_ms is not None:
data-completion-delay-ms="${completion_delay_ms}" \
% endif
>
% for idx, item in enumerate(items):
<div class="vert vert-${idx}" data-id="${item['id']}" \
% if item['id'] in watched_completable_blocks:
data-completable-by-viewing=True \
% endif
>
${HTML(item['content'])}
</div>
% endfor
</div>