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

<% content_for :note do %>
  <p>
    <% if @attachment.is_a?(JamRuby::MusicNotation) %>
      <% if @attachment.is_notation? %>
      A music notation has been added to your lesson. You can download  <a style="color:#fc0" href="<%= APP_CONFIG.external_root_url + "/api/music_notations/#{@attachment.id}" %>"><%= @attachment.file_name %></a> directly or at any time in the message window for this lesson.
      <% else %>
        A audio file has been added to your lesson. You can download  <a style="color:#fc0" href="<%= APP_CONFIG.external_root_url + "/api/music_notations/#{@attachment.id}" %>"><%= @attachment.file_name %></a> directly or at any time in the message window for this lesson.
  <% end %>
    <% else %>
      A recording named "<%= @attachment.name %>" has been added to your lesson.  It can be viewed <a style="color:#fc0" href="<%= APP_CONFIG.external_root_url + "/recordings/#{@attachment.id}" %>">here</a> or found within the message window for this lesson.
    <% 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 LESSON DETAILS</a>
  </p>
<% end %>


