<% 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' %> <%= message_user.user_extensions.school_id.blank? ? "" : "来自"+message_user.user_extensions.school.name+"," %> 申请以"<%= get_role_str ma.role %>"的身份加入竞赛:
  • <% content = message_user.show_name + "申请成为竞赛\"" + "#{contest.name}" + "\"的" + get_role_str(ma.role) %> <%= link_to contest.name, contest_path(contest.id), :class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}", :target => '_blank', :title => "#{content}" %>
  • <% if ma.status == 0 %> <%= 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%> <%= ma.applied_user_id ? User.find(ma.applied_user_id).show_name : "管理员" %>已同意 <% elsif ma.status == 2%> <%= ma.applied_user_id ? User.find(ma.applied_user_id).show_name : "管理员" %>已拒绝 <%end %>
  • <%= time_tag(ma.created_at).html_safe %>