parent
79ba840b01
commit
38acb4230e
@ -0,0 +1,30 @@
|
|||||||
|
<% org_project_activties.each do |act|%>
|
||||||
|
<% if act %>
|
||||||
|
|
||||||
|
<% unless act.forge_act_type == "ProjectCreateInfo" %>
|
||||||
|
<% 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 => 'users/project_message', :locals => {:activity => act.forge_act,:user_activity_id =>act.id} %>
|
||||||
|
<% when 'ProjectCreateInfo'%>
|
||||||
|
<%= render :partial => 'users/project_create', :locals => {:activity => act.forge_act,:user_activity_id =>act.id} %>
|
||||||
|
<% end %>
|
||||||
|
<% 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>
|
||||||
|
|
@ -0,0 +1,7 @@
|
|||||||
|
$("#show_more_activities").replaceWith("<%= escape_javascript( render :partial => 'organizations/org_project_activities',
|
||||||
|
:locals => {:org_project_activties =>@org_project_activties,
|
||||||
|
:page=>@page,
|
||||||
|
:org => @organization,
|
||||||
|
:org_act_count=>@org_activities.count,
|
||||||
|
:pro_act_count=>@org_project_activties.count} )%>");
|
||||||
|
|
Loading…
Reference in new issue