% if ma.class == AppliedMessage %>
<% if ma.applied_type == "ApplyAddSchools" %>
-
<%= link_to image_tag(url_to_avatar(ma.user), :width => "30", :height => "30"), user_path(ma.user), :target => '_blank' %>
-
<% if ma.status == 1 %>
<%=link_to ma.user, user_path(ma.user), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
">您添加新的高校(单位):
-
<%= ma.name %>的申请,已通过
- <%= time_tag(ma.created_at).html_safe %>
<% elsif ma.status == 2 %>
<%=link_to ma.user, user_path(ma.user), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
">您添加新的高校(单位):
-
<%= ma.applied.name %>的申请,因名称不合法,系统已将其更改为“<%= ma.name %>”
- <%= time_tag(ma.created_at).html_safe %>
<% elsif ma.status == 3 %>
<%=link_to ma.user, user_path(ma.user), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
">您添加新的高校(单位):
-
<%= link_to ma.name + "的申请,因名称不合法,已被拒绝,请重新编辑您的基本资料", { :controller=> "my",:action => "account" } %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% elsif ma && ma.applied_type == "AppliedProject" %>
-
<%=link_to image_tag(url_to_avatar(applied_project_users(ma)), :width => "30", :height => "30"), user_path(applied_project_users(ma)), :target => '_blank' %>
-
<%= render :partial => "users/user_message_applide_users", :locals =>{:ma => ma} %>
-
以“<%= applied_project_message_type(ma.role) %>”身份加入
<% project = Project.find(ma.project_id) %>
<%= link_to project.name, project_path(ma.project_id), :class => "link-blue", :target => '_blank', :title => "#{project.name}" %>
-
<%= render :partial => "users/user_message_applide_action", :locals =>{:ma => ma} %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% end %>