<% provide(:title, @subject) %>
<% provide(:photo_url, @teacher.resolved_photo_url) %>

<% content_for :note do %>
  <p>

    <% if @lesson_booking.canceled_by_admin %>
      This lesson was canceled by a JamKazam administrator.
  <% else %>
      This teacher has declined your lesson request.
  <% end %>

    <% if @message.present? %>
      <% if @lesson_booking.canceled_by_admin %>
        <br/><br/>System says:
      <% else %>
        <br/><br/><%= @teacher.name %> says:
      <% end %>
      <br/><%= @message %>
      <br/>
    <% end %>
    <% if @lesson_booking.canceled_by_admin %>
      <br/><br/>Click the button below to view the administrator's message.</p>
    <% else %>
      <br/><br/>Click the button below to view the teacher's response.</p>
    <% end %>

  <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 %>


