|
|
|
@ -123,7 +123,7 @@
|
|
|
|
|
<% if activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 1 %>
|
|
|
|
|
<div class="mt10">
|
|
|
|
|
<% projects = activity.student_work_projects.where("is_leader = 1") %>
|
|
|
|
|
<div class="fl mr5 fontGrey3">
|
|
|
|
|
<div class="mb10 mr5 fontGrey3">
|
|
|
|
|
已关联项目:<%='各小组尚未将小组项目关联到本次作业。' if projects.empty? %>
|
|
|
|
|
</div>
|
|
|
|
|
<% projects.each do |pro| %>
|
|
|
|
@ -134,23 +134,26 @@
|
|
|
|
|
$("#relatePInfo_<%=project.id %>").css("display","block");
|
|
|
|
|
}).mouseout(function(){
|
|
|
|
|
$("#relatePInfo_<%=project.id %>").css("display","none");
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<div class="mr20 mb10 fl">
|
|
|
|
|
<% if project.is_public || User.current.member_of?(project) || User.current.admin? %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius"),project_path(project.id,:host=>Setting.host_name),:id=>"project_img_"+project.id.to_s,:alt =>"项目头像" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius",:id=>"project_img_"+project.id.to_s,:alt =>"项目头像") %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="relatePInfo" id="relatePInfo_<%=project.id %>">
|
|
|
|
|
项目名称:<%=project.name %><br />
|
|
|
|
|
创建者:<%=(User.find project.user_id).show_name %>(组长)<br />
|
|
|
|
|
<% time=project.updated_on %>
|
|
|
|
|
<% time=ForgeActivity.where("project_id=?",project.id).last.updated_at if ForgeActivity.where("project_id=?",project.id).last %>
|
|
|
|
|
更新时间:<%=time_from_now time %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="mr20 mb10 fl w80" style="text-align: center;">
|
|
|
|
|
<% if project.is_public || User.current.member_of?(project) || User.current.admin? %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius"),project_path(project.id,:host=>Setting.host_name),:id=>"project_img_"+project.id.to_s,:alt =>"项目头像" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= image_tag(url_to_avatar(project),:width=>"40",:height => "40",:class => "borderRadius",:id=>"project_img_"+project.id.to_s,:alt =>"项目头像") %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p><span class="captainName">TimTang</span><span style="vertical-align: top;">(组长)</span></p>
|
|
|
|
|
<p>2个月前</p>
|
|
|
|
|
<div class="relatePInfo" id="relatePInfo_<%=project.id %>">
|
|
|
|
|
项目名称:<%=project.name %><br />
|
|
|
|
|
创建者:<%=(User.find project.user_id).show_name %>(组长)<br />
|
|
|
|
|
<% time=project.updated_on %>
|
|
|
|
|
<% time=ForgeActivity.where("project_id=?",project.id).last.updated_at if ForgeActivity.where("project_id=?",project.id).last %>
|
|
|
|
|
更新时间:<%=time_from_now time %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|