<% if ma.class == CourseMessage %> <% if ma.course_message_type == "News" %> <% end %> <% if ma.course_message_type == "Comment" %> <% end %> <% if ma.course_message_type == "HomeworkCommon" && ma.status.nil?%> <% end %> <% if ma.course_message_type == "HomeworkCommon" && ma.status == 1 %> <% end %> <% if ma.course_message_type == "HomeworkCommon" && ma.status == 2 %> <% end %> <% if ma.course_message_type == "HomeworkCommon" && ma.status == 3 %> <% end %> <% if ma.course_message_type == "HomeworkCommon" && ma.status == 4 %> <% end %> <% if ma.course_message_type == "Poll" %> <% end %> <% if ma.course_message_type == "Message" %> <% end %> <% if ma.course_message_type == "StudentWorksScore" %> <% end %> <% if ma.course_message_type == "JournalsForMessage" %> <% if ma.course_message.jour_type == 'Course' %> <% if params[:type] != 'homework' %> <% end %> <% else %> <% end %> <% end %> <% if ma.course_message_type == "StudentWork" && !ma.course_message.homework_common.nil? && !User.current.allowed_to?(:as_teacher, ma.course_message.homework_common.course) %> <% end %> <% if ma.course_message_type == "Course" %> <% end %> <% if ma.course_message_type == "JoinCourseRequest" %> <% end %> <% if ma.course_message_type == "CourseRequestDealResult" %> <% end %> <% if ma.course_message_type == "JoinCourse" and ma.status == 0 %> <% end %> <% if ma.course_message_type == "JoinCourse" and ma.status == 1 %> <% end %> <% if ma.course_message_type == "RemoveFromCourse" %> <% end %> <% if ma.course_message_type == "Exercise" && ma.status == 2 %> <% end %> <% if ma.course_message_type == "Exercise" && ma.status == 3 %> <% end %> <% end %>