Commit 7b1159dd by Matt Tuchfarber Committed by Troy Sankey

Add chat tab to /info page of courseware.

parent ac87b579
......@@ -113,6 +113,13 @@ from openedx.core.djangolib.markup import HTML, Text
</div>
</main>
<script>
var full_url = window.location.href;
full_url = full_url.substring(0, full_url.length-4) + 'chat';
tab_list = document.querySelector('.course-tabs');
tab_list.innerHTML = tab_list.innerHTML + '<li class="tab"><a href="' + full_url + '">Chat</a></li>';
</script>
<%static:require_module_async module_name="js/dateutil_factory" class_name="DateUtilFactory">
DateUtilFactory.transform(iterationKey=".localized-datetime");
</%static:require_module_async>
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