<% if @attachment.is_a?(JamRuby::MusicNotation) %>
<% if @attachment.is_notation? %>
A music notation has been added to your lesson. You can download (<%= APP_CONFIG.external_root_url + "/api/music_notations/#{@attachment.id}" %>">)<%= @attachment.file_name %> 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 (<%= APP_CONFIG.external_root_url + "/api/music_notations/#{@attachment.id}" %>">)<%= @attachment.file_name %> 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 (<%= APP_CONFIG.external_root_url + "/recordings/#{@attachment.id}" %>">) here or found within the message window for this lesson.
<% end %>
VIEW LESSON DETAILS (<%= @lesson_session.web_url %>)


