<% applied_contest = ma.applied %> <% contest = Contest.find applied_contest.contest_id %> <% message_user = User.find(applied_contest.user_id) %>
  • <%=link_to message_user.show_name, user_path(applied_contest.user_id), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %> <% if applied_contest.role role_str = "" if applied_contest.role.include?('13') && applied_contest.role.include?('14') role_str = "管理员、评委" elsif applied_contest.role.include?('13') role_str = "管理员" elsif applied_contest.role.include?('14') role_str = "评委" elsif applied_contest.role.include?('15') role_str = "参赛者" end end %> 申请以<%= role_str %>的身份加入班级:
  • <% content = message_user.show_name + "申请成为班级\"" + "#{contest.name}" + "\"的" + role_str %> <%= link_to contest.name, contest_path(contest.id), :class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}", :target => '_blank', :title => "#{content}" %>
  • <% if ma.status == 0 || ma.status.nil?%> <%= link_to '同意',dealwith_apply_request_contest_path(contest,:agree=>'Y',:msg_id=>ma.id),:remote=>'true',:class=>'linkBlue'%> | <%= link_to '拒绝',dealwith_apply_request_contest_path(contest,:agree=>'N',:msg_id=>ma.id),:remote=>'true',:class=>'linkBlue'%> <% elsif ma.status == 1%> 已同意申请 <% elsif ma.status == 2%> 已拒绝申请 <%end %>
  • <%= time_tag(ma.created_at).html_safe %>