作品列表的样式调整
This commit is contained in:
parent
03d70e8c9a
commit
400a470a2b
|
@ -2,8 +2,8 @@
|
||||||
<tr class="b_grey hworkH30" style="border-bottom:1px solid #eaeaea;">
|
<tr class="b_grey hworkH30" style="border-bottom:1px solid #eaeaea;">
|
||||||
<th class="hworkList30 hworkH30 pl5 pr5">序号</th>
|
<th class="hworkList30 hworkH30 pl5 pr5">序号</th>
|
||||||
<th class="hworkList50"> </th>
|
<th class="hworkList50"> </th>
|
||||||
<th class="hworkList260" style="text-align:left;">作品名称</th>
|
|
||||||
<% if @homework.homework_type != 3 %>
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<th class="hworkList260" style="text-align:left;">作品名称</th>
|
||||||
<th class="hworkList80">
|
<th class="hworkList80">
|
||||||
<span class="HomeworkStuTitle f14 fb fl">姓名</span>
|
<span class="HomeworkStuTitle f14 fb fl">姓名</span>
|
||||||
</th>
|
</th>
|
||||||
|
@ -11,9 +11,12 @@
|
||||||
<span class="HomeworkStuTitle f14 fb fl">学号</span>
|
<span class="HomeworkStuTitle f14 fb fl">学号</span>
|
||||||
</th>
|
</th>
|
||||||
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<th class="hworkList260" style="text-align:left;">作品名称</th>
|
||||||
<th class="hworkList160">
|
<th class="hworkList160">
|
||||||
<span class="HomeworkStuTitle f14 fb fl">关联项目</span>
|
<span class="HomeworkStuTitle f14 fb fl">关联项目</span>
|
||||||
</th>
|
</th>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 0 %>
|
||||||
|
<th class="hworkList420" style="text-align:left;">作品名称</th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<th class="hworkList130 pl10">
|
<th class="hworkList130 pl10">
|
||||||
时间
|
时间
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<tr class="b_grey hworkH30" style="border-bottom:1px solid #eaeaea;">
|
<tr class="b_grey hworkH30" style="border-bottom:1px solid #eaeaea;">
|
||||||
<th class="hworkList30 hworkH30 pl5 pr5">序号</th>
|
<th class="hworkList30 hworkH30 pl5 pr5">序号</th>
|
||||||
<th class="hworkList50"> </th>
|
<th class="hworkList50"> </th>
|
||||||
<th class="<%= @homework.homework_type == 2 ? 'hworkList80 pr10' : 'hworkList130 pr10'%>" style="text-align:left;">作品名称</th>
|
|
||||||
<% if @homework.homework_type != 3 %>
|
<% if @homework.homework_type != 3 %>
|
||||||
<th class="<%=@homework.anonymous_comment == 1 ? 'hworkList100' : 'hworkList60'%> pr10">
|
<th class="<%= @homework.homework_type == 2 ? 'hworkList80 pr10' : 'hworkList130 pr10'%>" style="text-align:left;">作品名称</th>
|
||||||
|
<th class="<%=@homework.anonymous_comment == 1 ? 'hworkList100' : 'hworkList60'%> pr10">
|
||||||
<%= link_to "姓名",@show_all ? student_work_index_path(:homework => @homework.id,:order => "lastname", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl #{@homework.anonymous_comment == 1 ? 'ml35' : 'ml18'}" ,:remote => true%>
|
<%= link_to "姓名",@show_all ? student_work_index_path(:homework => @homework.id,:order => "lastname", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl #{@homework.anonymous_comment == 1 ? 'ml35' : 'ml18'}" ,:remote => true%>
|
||||||
<% if @show_all && @order == "lastname"%>
|
<% if @show_all && @order == "lastname"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "lastname", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "lastname", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
|
||||||
|
@ -17,9 +17,12 @@
|
||||||
<% end%>
|
<% end%>
|
||||||
</th>
|
</th>
|
||||||
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<th class="hworkList130 pr10" style="text-align:left;">作品名称</th>
|
||||||
<th class="<%=@homework.anonymous_comment == 1 ? 'hworkList220' : 'hworkList160'%>">
|
<th class="<%=@homework.anonymous_comment == 1 ? 'hworkList220' : 'hworkList160'%>">
|
||||||
<span class="c_dark f14 fb">关联项目</span>
|
<span class="c_dark f14 fb">关联项目</span>
|
||||||
</th>
|
</th>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 0 %>
|
||||||
|
<th class="hworkList290 pr10" style="text-align:left;">作品名称</th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<th class="hworkList130">
|
<th class="hworkList130">
|
||||||
<%= link_to "时间",@show_all ? student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml50" ,:remote => true%>
|
<%= link_to "时间",@show_all ? student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml50" ,:remote => true%>
|
||||||
|
|
|
@ -5,20 +5,26 @@
|
||||||
<td class="hworkPortrait pr10 float-none">
|
<td class="hworkPortrait pr10 float-none">
|
||||||
<%= link_to(image_tag(url_to_avatar(student_work.user),:width =>"40",:height => "40",:style => "display:block;"),user_activities_path(student_work.user)) %>
|
<%= link_to(image_tag(url_to_avatar(student_work.user),:width =>"40",:height => "40",:style => "display:block;"),user_activities_path(student_work.user)) %>
|
||||||
</td>
|
</td>
|
||||||
<td class="hworkName float-none pr10 student_work_<%= student_work.id%> <%= @homework.homework_type == 2 ? '' : 'width130'%>" style="cursor: pointer;" onclick="show_student_work('<%= student_work_path(student_work)%>');">
|
<% if @homework.homework_type != 3 %>
|
||||||
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
<td class="hworkName float-none pr10 student_work_<%= student_work.id%> <%= @homework.homework_type == 2 ? '' : 'width130'%>" style="cursor: pointer;" onclick="show_student_work('<%= student_work_path(student_work)%>');">
|
||||||
<div>
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
||||||
<%= link_to student_work_name,"javascript:void(0)" ,:title => student_work_name, :class => "linkGrey f14 StudentName break_word #{@homework.homework_type == 2 ? '' : 'width165'}"%>
|
<div>
|
||||||
</div>
|
<%= link_to student_work_name,"javascript:void(0)" ,:title => student_work_name, :class => "linkGrey f14 StudentName break_word #{@homework.homework_type == 2 ? '' : 'width165'}"%>
|
||||||
</td>
|
</div>
|
||||||
<% if @homework.homework_type != 3 %>
|
</td>
|
||||||
<td class="<%=@homework.anonymous_comment == 1 ? 'hworkStName100' : 'hworkStName'%> pr10 student_work_<%= student_work.id%>" title="<%= student_work.user.show_name%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor:pointer;">
|
<td class="<%=@homework.anonymous_comment == 1 ? 'hworkStName100' : 'hworkStName'%> pr10 student_work_<%= student_work.id%>" title="<%= student_work.user.show_name%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor:pointer;">
|
||||||
<%= student_work.user.show_name%>
|
<%= student_work.user.show_name%>
|
||||||
</td>
|
</td>
|
||||||
<td class="<%=@homework.anonymous_comment == 1 ? 'hworkStID90' : 'hworkStID'%> pr10 float-none student_work_<%= student_work.id%>" title="<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor:pointer;">
|
<td class="<%=@homework.anonymous_comment == 1 ? 'hworkStID90' : 'hworkStID'%> pr10 float-none student_work_<%= student_work.id%>" title="<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor:pointer;">
|
||||||
<span style="width:80px;" class="hidden fl"><%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%></span>
|
<span style="width:80px;" class="hidden fl"><%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%></span>
|
||||||
</td>
|
</td>
|
||||||
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<td class="hworkName float-none pr10 student_work_<%= student_work.id%> width130" 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'}"%>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<% 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? %>
|
||||||
<td class="<%=@homework.anonymous_comment == 1 ? 'hworkPrName2' : 'hworkPrName'%> student_work_<%= student_work.id%>" title="项目名称">
|
<td class="<%=@homework.anonymous_comment == 1 ? 'hworkPrName2' : 'hworkPrName'%> student_work_<%= student_work.id%>" title="项目名称">
|
||||||
<%= link_to( student_work.project.name, project_path(student_work.project.id))%>
|
<%= link_to( student_work.project.name, project_path(student_work.project.id))%>
|
||||||
|
@ -28,7 +34,14 @@
|
||||||
<%= student_work.project.name %>
|
<%= student_work.project.name %>
|
||||||
</td>
|
</td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 0 %>
|
||||||
|
<td class="hworkName float-none pr10 student_work_<%= student_work.id%> width290" 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'}"%>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<% end %>
|
||||||
<td class="hworkList130 c_grey student_work_<%= student_work.id%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
<td class="hworkList130 c_grey student_work_<%= student_work.id%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
||||||
<% if student_work.created_at && @homework.end_time%>
|
<% if student_work.created_at && @homework.end_time%>
|
||||||
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
|
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
|
||||||
|
|
|
@ -20,6 +20,12 @@
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<% if @homework.homework_type != 3 %>
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<td class="hworkName pr10 w250 float-none student_work_<%= student_work.id%>">
|
||||||
|
<div>
|
||||||
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
||||||
|
<%= link_to student_work_name, student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word w250"%>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td class="hworkStName float-none w80 student_work_<%= student_work.id%>" title="<%= student_work.user.show_name%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
<td class="hworkStName float-none w80 student_work_<%= student_work.id%>" title="<%= student_work.user.show_name%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
||||||
<%= student_work.user.show_name%>
|
<%= student_work.user.show_name%>
|
||||||
</td>
|
</td>
|
||||||
|
@ -27,6 +33,12 @@
|
||||||
<span class="hidden fl" style="width:80px;"><%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%></span>
|
<span class="hidden fl" style="width:80px;"><%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%></span>
|
||||||
</td>
|
</td>
|
||||||
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<td class="hworkName pr10 w250 float-none student_work_<%= student_work.id%>">
|
||||||
|
<div>
|
||||||
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
||||||
|
<%= link_to student_work_name, student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word w250"%>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<% 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? %>
|
||||||
<td class="hworkPrName float-none mr10 student_work_<%= student_work.id%>" title="项目名称">
|
<td class="hworkPrName float-none mr10 student_work_<%= student_work.id%>" title="项目名称">
|
||||||
<%= link_to( student_work.project.name, project_path(student_work.project.id))%>
|
<%= link_to( student_work.project.name, project_path(student_work.project.id))%>
|
||||||
|
@ -36,6 +48,13 @@
|
||||||
<%= student_work.project.name %>
|
<%= student_work.project.name %>
|
||||||
</td>
|
</td>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 0 %>
|
||||||
|
<td class="hworkName pr10 w410 float-none student_work_<%= student_work.id%>">
|
||||||
|
<div>
|
||||||
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
||||||
|
<%= link_to student_work_name, student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word w250"%>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else%>
|
<% else%>
|
||||||
<td class="hworkList30 pl5 pr5" id="work_num_<%=student_work.id %>"><%=index + 1 %></td>
|
<td class="hworkList30 pl5 pr5" id="work_num_<%=student_work.id %>"><%=index + 1 %></td>
|
||||||
|
|
|
@ -61,6 +61,8 @@ a:hover.news_foot{ color:#787b7e; border:1px solid #d4d4d4;}
|
||||||
.hworkList160 {width:160px; text-align:center;}
|
.hworkList160 {width:160px; text-align:center;}
|
||||||
.hworkList220 {width:220px; text-align:center;}
|
.hworkList220 {width:220px; text-align:center;}
|
||||||
.hworkList260 {width:260px; text-align:left;}
|
.hworkList260 {width:260px; text-align:left;}
|
||||||
|
.hworkList290 {width:290px; text-align:left;}
|
||||||
|
.hworkList420 {width:420px; text-align:left;}
|
||||||
.codeList{ float:right; font-size:12px; color:#484848; padding:0px 3px; width:714px; margin-bottom:10px; }
|
.codeList{ float:right; font-size:12px; color:#484848; padding:0px 3px; width:714px; margin-bottom:10px; }
|
||||||
.hworkName {width:80px; float:left; line-height:18px;}
|
.hworkName {width:80px; float:left; line-height:18px;}
|
||||||
.hworkName div{max-height: 36px;overflow: hidden;}
|
.hworkName div{max-height: 36px;overflow: hidden;}
|
||||||
|
@ -91,6 +93,7 @@ a.hworkSearchIcon:hover {background:url(../images/nav_icon.png) -49px -1px no-re
|
||||||
.width130{width: 130px;}
|
.width130{width: 130px;}
|
||||||
.width165{width: 165px;}
|
.width165{width: 165px;}
|
||||||
.width180{width: 180px;}
|
.width180{width: 180px;}
|
||||||
|
.width290{width: 290px;}
|
||||||
.width525{width: 525px;}
|
.width525{width: 525px;}
|
||||||
.width285{width: 285px;}
|
.width285{width: 285px;}
|
||||||
.width255{width: 255px;}
|
.width255{width: 255px;}
|
||||||
|
|
|
@ -159,6 +159,7 @@ h4{ font-size:14px; color:#3b3b3b;}
|
||||||
.w230{width:230px !important;}
|
.w230{width:230px !important;}
|
||||||
.w235{ width:235px !important;}
|
.w235{ width:235px !important;}
|
||||||
.w250{ width:250px !important;}
|
.w250{ width:250px !important;}
|
||||||
|
.w410{ width:410px !important;}
|
||||||
.w280{ width:280px;}
|
.w280{ width:280px;}
|
||||||
.w265{ width: 265px;}
|
.w265{ width: 265px;}
|
||||||
.w270{ width: 270px;}
|
.w270{ width: 270px;}
|
||||||
|
|
Loading…
Reference in New Issue