71 lines
5.1 KiB
Plaintext
71 lines
5.1 KiB
Plaintext
<% if ma.class == AppliedMessage %>
|
|
<!--申请加入项目-->
|
|
<% if ma.applied_type == "ApplyAddSchools" %>
|
|
<% if ma.status == 1 || ma.status == 2 || ma.status == 3 || ma.status == 4 %>
|
|
<ul class="homepageNewsList fl">
|
|
<li class="homepageNewsPortrait fl">
|
|
<a href="javascript:void(0);">
|
|
<% if ma.status == 1 || ma.status == 2 || ma.status == 3 %>
|
|
<%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %>
|
|
<% elsif ma.status == 4 %>
|
|
<%= link_to image_tag(url_to_avatar(ma.user), :width => "30", :height => "30"), user_path(ma.user), :target => '_blank' %>
|
|
<% end %>
|
|
</a>
|
|
</li>
|
|
<li class="homepageNewsPubType fl">
|
|
<% if ma.status == 1 %>
|
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>">您添加新的高校(单位):</span>
|
|
<li class="homepageNewsContent fl">
|
|
<a class ="#{ma.viewed == 0 ? 'newsBlack' : 'newsGrey'}" target = '_blank' title="<%= ma.name %>的申请,已通过">“<%= ma.name %>”的申请,已通过</a>
|
|
</li>
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
<% elsif ma.status == 2 %>
|
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>">您添加新的高校(单位):</span>
|
|
<li class="homepageNewsContent fl">
|
|
<a class ="#{ma.viewed == 0 ? 'newsBlack' : 'newsGrey'}" target = '_blank' title="“<%= ma.applied.name %>”的申请,因名称不合法,系统已将其更改为“<%= ma.name %>”">“<%= ma.applied.name %>”的申请,因名称不合法,系统已将其更改为“<%= ma.name %>”</a>
|
|
</li>
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
<% elsif ma.status == 3 %>
|
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>">您添加新的高校(单位):</span>
|
|
<li class="homepageNewsContent fl">
|
|
<%= link_to "“"+ma.name+"”" + "的申请,因名称不合法,已被拒绝,请重新编辑您的基本资料", { :controller=> "my",:action => "account" }, :title => "“#{ma.name}”的申请,因名称不合法,已被拒绝,请重新编辑您的基本资料", :target => '_blank'%>
|
|
</li>
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
<% elsif ma.status == 4 %>
|
|
<%=link_to User.where("id=?", ma.applied_user_id).first.show_name, user_path(ma.user), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>"> 申请了单位:</span>
|
|
<li class="homepageNewsContent fl">
|
|
<a class ="#{ma.viewed == 0 ? 'newsBlack' : 'newsGrey'}" target = '_blank'>
|
|
<%= link_to User.where("id=?", ma.applied_user_id).first.show_name + "提交了申请:添加新的单位“#{ma.name}”", unapplied_schools_path(), :title => "#{User.where("id=?", ma.applied_user_id).first.show_name}提交了申请:添加新的单位“#{ma.name}”" %></a>
|
|
</li>
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
<% end %>
|
|
</li>
|
|
</ul>
|
|
<% end %>
|
|
<% elsif ma && ma.applied_type == "AppliedProject" %>
|
|
<ul class="homepageNewsList fl">
|
|
<li class="homepageNewsPortrait fl">
|
|
<a href="javascript:void(0);"><%=link_to image_tag(url_to_avatar(applied_project_users(ma)), :width => "30", :height => "30"), user_path(applied_project_users(ma)), :target => '_blank' %></a>
|
|
</li>
|
|
<li class="homepageNewsPubType fl">
|
|
<%= render :partial => "users/user_message_applide_users", :locals =>{:ma => ma} %>
|
|
</li>
|
|
<li class="homepageNewsContent fl" style="width:283px;"><a href="javascript:void(0);" class="newsGrey">
|
|
以“<%= 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}" %>
|
|
</a>
|
|
</li>
|
|
<li class="fl" style="width:71px; height:49px;">
|
|
<span id="applied_project_<%= ma.id %>">
|
|
<%= render :partial => "users/user_message_applide_action", :locals =>{:ma => ma} %>
|
|
</span>
|
|
</li>
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
</ul>
|
|
<% end %>
|
|
<% end %> |