2016-01-29 16:55:07 +08:00
|
|
|
<%= import_ke(enable_at: true, prettify: false, init_activity: true) %>
|
2016-01-07 15:58:22 +08:00
|
|
|
<script>
|
2016-03-18 10:05:31 +08:00
|
|
|
var onUserCard = false;
|
|
|
|
var onImage = false;
|
2016-01-07 15:58:22 +08:00
|
|
|
$(document).ready(function(){
|
|
|
|
$("#relateProject,.relatePInfo").mouseover(function(){
|
|
|
|
$(".relatePInfo").css("display","block");
|
2016-08-31 14:08:19 +08:00
|
|
|
});
|
2016-01-07 15:58:22 +08:00
|
|
|
$("#relateProject,.relatePInfo").mouseout(function(){
|
|
|
|
$(".relatePInfo").css("display","none");
|
2016-08-31 14:08:19 +08:00
|
|
|
});
|
2016-01-07 15:58:22 +08:00
|
|
|
$(".coursesLineGrey").mouseover(function(){
|
|
|
|
$(this).css("color","#ffffff");
|
2016-08-31 14:08:19 +08:00
|
|
|
});
|
2016-01-07 15:58:22 +08:00
|
|
|
$(".coursesLineGrey").mouseout(function(){
|
|
|
|
$(this).css("color","#808080");
|
2016-08-31 14:08:19 +08:00
|
|
|
});
|
2016-01-07 15:58:22 +08:00
|
|
|
$(".homepagePostSetting,.coursesLineGrey").mouseover(function(){
|
|
|
|
$(this).prev().css("color","#ffffff");
|
|
|
|
$(this).css("z-index", "9999");
|
2016-08-31 14:08:19 +08:00
|
|
|
});
|
2016-01-07 15:58:22 +08:00
|
|
|
$(".homepagePostSetting").mouseout(function(){
|
|
|
|
$(this).prev().css("color","#808080");
|
|
|
|
$(this).css("z-index", "1");
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
2016-02-23 16:17:14 +08:00
|
|
|
|
2015-12-04 10:59:09 +08:00
|
|
|
<% unless forge_acts.empty? %>
|
2016-03-28 17:09:42 +08:00
|
|
|
<% forge_acts.each do |activity| -%>
|
2015-12-04 10:59:09 +08:00
|
|
|
<script>
|
|
|
|
$(function () {
|
2016-01-29 16:26:00 +08:00
|
|
|
sd_create_editor_from_data(<%= activity.id %>, null, "100%", "<%= activity.class.to_s %>");
|
2015-12-04 10:59:09 +08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<!--创建-->
|
|
|
|
<% case activity.forge_act_type %>
|
2016-03-24 12:59:03 +08:00
|
|
|
<% when "Project" %>
|
2015-12-04 10:59:09 +08:00
|
|
|
<%= render :partial => 'projects/project_create', :locals => {:activity => activity, :user_activity_id => activity.id} %>
|
|
|
|
<!--缺陷动态-->
|
|
|
|
<% when "Issue" %>
|
2016-10-13 10:52:48 +08:00
|
|
|
<%= render :partial => 'projects/act_issues', :locals => {:activity => activity.forge_act, :user_activity_id => activity.id, :project_id => activity.project_id} %>
|
2015-12-04 10:59:09 +08:00
|
|
|
<!--message -->
|
|
|
|
<% when "Message" %>
|
2016-10-13 10:52:48 +08:00
|
|
|
<%= render :partial => 'projects/act_messages', :locals => {:activity => activity.forge_act, :user_activity_id => activity.id, :is_course => 1, :is_board => 0} %>
|
2015-12-04 10:59:09 +08:00
|
|
|
<!--Attachment -->
|
|
|
|
<% when "Attachment" %>
|
2016-10-19 09:35:53 +08:00
|
|
|
<%= render :partial => 'projects/project_attachment', :locals => {:activity => activity.forge_act, :user_activity_id => activity.id } %>
|
2016-07-21 18:08:13 +08:00
|
|
|
<% when "Commit" %>
|
2016-07-22 16:35:03 +08:00
|
|
|
<%= render :partial => 'projects/project_commit', :locals => {:activity => activity.forge_act, :user_activity_id => activity.id, :identifier => get_rep_identifier_by_project(@project) } %>
|
2015-12-04 10:59:09 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if forge_acts.count == 10 %>
|
2015-12-22 15:14:03 +08:00
|
|
|
<!--<div id="show_more_forge_activities" class="loadMore mt10 f_grey">点击展开更多<%#= link_to "", project_path(@project.id, :type => type, :page => page), :id => "more_forge_activities_link", :remote => "true", :class => "none" %></div>-->
|
2016-10-18 13:34:28 +08:00
|
|
|
<%= link_to "点击展开更多",project_path(@project.id, :type => type, :page => page),:id => "show_more_forge_activities",:remote => "true",:class => "banner-big dis tac mt10 f_grey"%>
|
2015-12-04 10:59:09 +08:00
|
|
|
<% end %>
|
|
|
|
|
2015-12-22 15:14:03 +08:00
|
|
|
<!--
|
2015-12-04 10:59:09 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
$("#show_more_forge_activities").mouseover(function () {
|
|
|
|
$("#more_forge_activities_link").click();
|
|
|
|
});
|
2015-12-22 15:14:03 +08:00
|
|
|
</script>-->
|