<% _.each(csections, function (section, idx) { if (section.visible) { %> <% if (!idx) { %>

><%= course.fullname %>

Introduction

<%= section.summary %>
<% } else { %>

<%= section.name %>

<%= section.summary %>
<% } %> <% _.each(section.attachments.toJSON(), function (attachment) { if (attachment.visible === undefined || attachment.visible) { %> <% if (attachment.contents[0].type == "image") { %> <% } else if (attachment.contents[0].type == "url") { %> <% if (attachment.type == "youtube") { %> <% } else if (attachment.type == "vimeo") { %> <% } else { %>
<% } %> <% } else { %>
<% } %> <% }}); %>
<% }}); %>