<% org_project_activties.each do |act|%>
<% if act %>
                <% if act  %>
                    <% case act.forge_act_type.to_s %>
                    <% when 'Issue' %>
                        <%= render :partial => 'organizations/org_project_issue', :locals => {:activity => act.forge_act,:user_activity_id =>act.id} %>
                    <% when 'Message' %>
                        <%= render :partial => 'organizations/project_message', :locals => {:activity => act.forge_act,:user_activity_id =>act.id} %>
                    <% when 'Project'%>
                        <%= render :partial => 'organizations/project_create', :locals => {:activity => act,:user_activity_id =>act.id} %>
                    <% end %>
                <% end %>
<% end %>
<% end %>
<% if org_act_count == 10 ||  pro_act_count == 10 %>
    <div id="show_more_activities" class="loadMore mt10 f_grey">展开更多<%=link_to "", organization_path(org,:page => page.to_i + 1),:id => "more_org_activities_link",:remote => "true",:class => "none" %></div>
    <%#= link_to "点击展开更多",user_activities_path(@user.id,:type => type,:page => page),:id => "show_more_activities",:remote => "true",:class => "loadMore mt10 f_grey"%>
<% end%>

<script>
    $(function(){
        $("#show_more_activities").mouseover(function(){
            $("#more_org_activities_link").click();
        })
    })

</script>

