分组作业关联项目提示
This commit is contained in:
parent
f6e86866cb
commit
6b6584d764
|
@ -9,11 +9,22 @@
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<% if @homework.homework_detail_group.base_on_project == 1 %>
|
<% if @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<div class="pr fr projectName">
|
||||||
<% if student_work.project.is_public || User.current.member_of?(student_work.project) || User.current.admin? %>
|
<% if student_work.project.is_public || User.current.member_of?(student_work.project) || User.current.admin? %>
|
||||||
<%= link_to student_work.project.name, project_path(student_work.project.id), :class => 'link-blue fr hidden', :style => "max-width:200px;", :title => "项目名称"%>
|
<%= link_to student_work.project.name, project_path(student_work.project.id), :class => 'link-blue fr hidden', :style => "max-width:200px;", :title => "项目名称"%>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="fontBlue fr hidden" style="max-width:200px;" title="该项目是私有的"><%= student_work.project.name %></span>
|
<span class="fontBlue fr hidden" style="max-width:200px;" title="该项目是私有的"><%= student_work.project.name %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<div class="score-tip none tl f12" style="width:300px; top:-48px; right:-362px;">
|
||||||
|
<em style="bottom:45px;"></em>
|
||||||
|
<font style="bottom:45px;"></font>
|
||||||
|
<p class="fb"><%= student_work.project.name %></p>
|
||||||
|
<p class="mb10"><span class="mr15">创建者:刘逸舟</span><span>成员数量:5</span></p>
|
||||||
|
<p>项目综合得分:106703</p>
|
||||||
|
<p>= 代码提交得分 + issue得分 + 资源得分 + 讨论区得分</p>
|
||||||
|
<p>= 67716 + 38679 + 80 + 20</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<span class="fr">关联项目:</span>
|
<span class="fr">关联项目:</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
@ -73,3 +84,11 @@
|
||||||
<a href="javascript:void(0)" onclick="show_student_work('<%= student_work_path(student_work)%>');" class="link-blue fr ml5" style="width:28px; text-align:right;">评分</a>
|
<a href="javascript:void(0)" onclick="show_student_work('<%= student_work_path(student_work)%>');" class="link-blue fr ml5" style="width:28px; text-align:right;">评分</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
$(".projectName").mouseenter(function(){
|
||||||
|
$(this).children().next().show();
|
||||||
|
}).mouseleave(function(){
|
||||||
|
$(this).children().next().hide();
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue