<% if @project %>
$("#more_message_replies").replaceWith("<%= escape_javascript(render :partial =>  'messages/project_show_replies')%>");
<% elsif @course %>
$("#more_message_replies").replaceWith("<%= escape_javascript(render :partial =>  'messages/course_show_replies')%>");
<% else %>
$("#more_message_replies").replaceWith("<%= escape_javascript(render :partial =>  'messages/org_show_replies')%>");
<% end %>