<% if ma.contest_message_type == "ContestRequestDealResult" %> <% user = User.find(ma.user_id) %> <% if ma.content role_str = "" if ma.content.include?('13') && ma.content.include?('14') role_str = "管理员、评委" elsif ma.content.include?('13') role_str = "管理员" elsif ma.content.include?('14') role_str = "评委" elsif ma.content.include?('15') role_str = "参赛者" end end %> <% elsif ma.contest_message_type == "JoinContest" and ma.status == 0 %> <% elsif ma.contest_message_type == "JoinContest" and ma.status == 1 %> <% elsif ma.contest_message_type == "RemoveFromContest" %> <% elsif ma.contest_message_type == "Work" && ma.status.nil? && ma.contest_message %> <% elsif ma.contest_message_type == "Work" && ma.status == 1 && ma.contest_message %> <% elsif ma.contest_message_type == "Work" && ma.status == 2 && ma.contest_message %> <% elsif ma.contest_message_type == "Work" && ma.status == 4 && ma.contest_message %> <% elsif ma.contest_message_type == "Work" && ma.status == 5 && ma.contest_message %> <% elsif ma.contest_message_type == "News" && ma.contest_message %> <% elsif ma.contest_message_type == "Comment" && ma.contest_message %> <% elsif ma.contest_message_type == "Message" && !ma.nil? && !ma.contest_message.nil? %> <% elsif ma.contest_message_type == "JournalsForMessage" && ma.contest_message && ma.contest_message.jour_type == 'Contest' %> <% end %>