<% if (description = tool.description) %> <% content_for(:tool_description) { sanitize(description).gsub(/\n/, "

").html_safe } %> <% end %>

Lessons Week <%= week_in_study %>

<% weekly_tasks.each do |tasks| %>
<% if tasks[:tasks].count == 0 %>
No lessons exist for this week.
<% else %> <% tasks[:tasks].each do |ts| %> <% release_date = ts.available_for_learning_on %> <% if ts.accessible? %> <%= link_to create_task_path(ts), class: "task-status", id: "task-status-#{ ts.id }" do %>

"><%= ts.task.bit_core_content_module.pretty_title %>

<% end %>

<% if release_date < Date.today %> Released on <%= release_date.to_s(:participant_date) %> <% elsif release_date == Date.today %> Released Today <% end %> <% if ts.completed_at %> · Read on <%= ts.completed_at.to_s(:participant_date) %> · <%= link_to "Printable", think_feel_do_engine.participants_lesson_path(ts.bit_core_content_module.id), class: "action" %> <% end %>

<% else %>

<%= ts.task.bit_core_content_module.pretty_title %>

Available on <%= release_date.to_s(:participant_date) %>

<% end %> <% end %> <% end %>
<% end %>