|
|
|
@ -5,8 +5,8 @@
|
|
|
|
|
<li class="hworkPortrait mt15 mr10">
|
|
|
|
|
<%= link_to(image_tag(url_to_avatar(student_work.user),:width =>"40",:height => "40"),user_activities_path(student_work.user)) %>
|
|
|
|
|
</li>
|
|
|
|
|
<div onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;" class="student_work_<%= student_work.id%>">
|
|
|
|
|
<li class="hworkName mt15 mr15 <%= @homework.homework_type == 2 ? '' : 'width165'%>">
|
|
|
|
|
<div class="student_work_<%= student_work.id%>">
|
|
|
|
|
<li class="hworkName mt15 mr15 <%= @homework.homework_type == 2 ? '' : 'width165'%>" style="cursor: pointer;" onclick="show_student_work('<%= student_work_path(student_work)%>');">
|
|
|
|
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
|
|
|
|
<div>
|
|
|
|
|
<%= link_to student_work_name,"javascript:void(0)" ,:title => student_work_name, :class => "linkGrey f14 StudentName break_word #{@homework.homework_type == 2 ? '' : 'width165'}"%>
|
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<% if @homework.homework_type != 3 %>
|
|
|
|
|
<ul class="mt10 fl">
|
|
|
|
|
<ul class="mt10 fl" style="cursor: pointer;" onclick="show_student_work('<%= student_work_path(student_work)%>');">
|
|
|
|
|
<li class="hworkStName mr10 mt16" title="<%= student_work.user.show_name%>">
|
|
|
|
|
<%= student_work.user.show_name%>
|
|
|
|
|
</li>
|
|
|
|
@ -24,9 +24,15 @@
|
|
|
|
|
</ul>
|
|
|
|
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
|
|
|
|
<ul class="mt10 fl">
|
|
|
|
|
<% if student_work.project.is_public || User.current.member_of?(student_work.project) || User.current.admin? %>
|
|
|
|
|
<li class="hworkPrName mr10 mt12" title="项目名称">
|
|
|
|
|
<%= link_to( student_work.project.name, project_path(student_work.project.id))%>
|
|
|
|
|
</li>
|
|
|
|
|
<% else %>
|
|
|
|
|
<li class="hworkPrName mr10 mt12" title="该项目是私有的">
|
|
|
|
|
<%= student_work.project.name %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|