<% if ma.class == AppliedMessage %>
    <!-- 申请添加单位 -->
    <% if ma.applied_type == "ApplyAddSchools" %>
        <ul class="homepageNewsList fl">
          <li class="homepageNewsPortrait fl">
            <a href="javascript:void(0);">
              <% if ma.status == 0 %>
                  <% 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' %>
              <% else %>
                  <%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %>
              <% end %>
            </a>
          </li>
          <li class="homepageNewsPubType fl">
              <%= 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>
          </li>
        </ul>
    <!-- 申请加入项目 -->
    <% elsif ma && ma.applied_type == "AppliedProject" %>
        <ul class="homepageNewsList fl" id="applied_project_<%= ma.id %>">
          <%= render :partial => "users/applied_project_content", :locals =>{:ma => ma} %>
        </ul>
    <% end %>
<% end %>