Modified annotatable to retrieve and display instructor comments from span elements. Instructor commentaries are displayed in tooltips with a reply link when the highlighted area is clicked. The commentaries are connected to inline discussion forums by anchors (for now).

This commit is contained in:
Arthur Barrett
2013-02-07 19:51:22 -05:00
parent 2097b69332
commit 7ea87793c2
4 changed files with 173 additions and 191 deletions

View File

@@ -1,22 +1,14 @@
<div class="annotatable-wrapper" id="${element_id}-wrapper">
<div class="annotatable-header">
<div class="help-icon"></div>
% if display_name is not UNDEFINED and display_name is not None:
<div class="annotatable-title">${display_name} </div>
% endif
<div class="annotatable-description">Annotated Reading + Guided Discussion</div>
<a href="javascript:void(0)" class="annotatable-toggle">Hide Annotations</a>
</div>
<div class="annotatable-content">
${html_content}
</div>
<div class="annotatable-header">
<div class="help-icon"></div>
% if display_name is not UNDEFINED and display_name is not None:
<div class="annotatable-title">${display_name} </div>
% endif
<div class="annotatable-description">Annotated Reading + Guided Discussion</div>
<a href="javascript:void(0)" class="annotatable-toggle">Hide Annotations</a>
</div>
<script>
$(function() {
$('#${element_id}-wrapper').data('spans', ${json_discussion_for});
});
</script>
<div class="annotatable-content">
${html_content}
</div>
</div>