2016-07-27 11:33:54 +08:00
|
|
|
<% if ma.class == AppliedMessage %>
|
2016-08-13 14:29:33 +08:00
|
|
|
<!-- 申请添加单位 -->
|
2016-07-27 11:33:54 +08:00
|
|
|
<% if ma.applied_type == "ApplyAddSchools" %>
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
<li class="homepageNewsPortrait fl">
|
2016-07-29 23:22:32 +08:00
|
|
|
<a href="javascript:void(0);">
|
2016-08-03 17:36:04 +08:00
|
|
|
<% if ma.status == 0 %>
|
2016-08-13 14:29:33 +08:00
|
|
|
<% applied_user = User.find(ma.applied_user_id) %>
|
|
|
|
<%= link_to image_tag(url_to_avatar(applied_user), :width => "30", :height => "30"), user_path(applied_user), :target => '_blank' %>
|
2016-08-03 17:36:04 +08:00
|
|
|
<% else %>
|
|
|
|
<%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %>
|
2016-07-29 23:22:32 +08:00
|
|
|
<% end %>
|
|
|
|
</a>
|
2016-07-27 11:33:54 +08:00
|
|
|
</li>
|
|
|
|
<li class="homepageNewsPubType fl">
|
2016-08-03 17:36:04 +08:00
|
|
|
<%= render :partial => "users/user_message_applied_schools", :locals =>{:ma => ma} %>
|
|
|
|
<li class = "homepageNewsContent fl">
|
|
|
|
<%= render :partial => "users/user_message_applied_school_action", :locals =>{:ma => ma} %>
|
|
|
|
</li>
|
|
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
2016-07-27 11:33:54 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
2016-08-13 14:29:33 +08:00
|
|
|
<!-- 申请加入项目 -->
|
2016-07-28 16:22:33 +08:00
|
|
|
<% elsif ma && ma.applied_type == "AppliedProject" %>
|
2016-08-02 13:03:33 +08:00
|
|
|
<ul class="homepageNewsList fl" id="applied_project_<%= ma.id %>">
|
|
|
|
<%= render :partial => "users/applied_project_content", :locals =>{:ma => ma} %>
|
2016-07-28 16:22:33 +08:00
|
|
|
</ul>
|
2016-07-27 11:33:54 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|