<% provide(:title, @subject)  %>
<% if @lesson_booking.canceler %>
  <% provide(:photo_url, @lesson_session.canceler.resolved_photo_url) %>
<% else %>
  <% provide(:photo_url, "#{APP_CONFIG.external_root_url}/assets/shared/avatar_generic.png") %>
<% end %>

<% content_for :note do %>
  <p>
      Your lesson with <%= @teacher.name %> has been canceled.<br/><br/>

      Session Name: <%= @session_name %><br/>
      Session Description: <%= @session_description %></br>
      <%= @session_date %>

    <% if @message.present? %>
      <% if @lesson_session.canceled_by_admin %>
        <br/><br/>System says:
      <% else %>
        <br/><br/><%= @lesson_session.canceler.name %> says:
      <% end %>
      <br/><%= @message %>
      <br/>
    <% end %>
    <br/><br/>Click the button below to view more info about the canceled session.</p>
  <p>
  <a href="<%= @lesson_session.web_url %>" style="margin: 8px 0 0 0;background-color: #ed3618;border: solid 1px #F27861;padding: 3px 10px;font-size: 12px;font-weight: 300;cursor: pointer;color: #FC9;text-decoration: none;line-height: 12px;text-align: center;">VIEW RESPONSE</a>
  </p>
<% end %>


