匿评作品列表界面
This commit is contained in:
parent
1119840e25
commit
09e014b5f7
|
@ -1,22 +1,23 @@
|
|||
<!-- 匿评作品列表,显示某一个作品的信息 -->
|
||||
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
|
||||
<% is_my_work = student_work.user == User.current%>
|
||||
<li style="min-height: 1px;width: 65px;">
|
||||
<li class="hwork_num">
|
||||
<% if is_my_work%>
|
||||
<% student_id = student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
||||
<%= link_to student_id,"javascript:void(0)",:class => "c_grey hwork_center",:title => student_id%>
|
||||
<span>
|
||||
<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
||||
</span>
|
||||
<% else%>
|
||||
<%= link_to "--", "javascript:void(0)",:class => "c_grey hwork_center"%>
|
||||
<span>--</span>
|
||||
<% end%>
|
||||
</li>
|
||||
<li>
|
||||
<li class="hwork_name">
|
||||
<% if is_my_work%>
|
||||
<%= link_to student_work.user.show_name,user_path(student_work.user),:class => "c_blue02 hwork_name",:title => student_work.user.show_name %>
|
||||
<%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name %>
|
||||
<% else%>
|
||||
<%= link_to "匿名","javascript:void(0)",:class => "c_blue02 hwork_name"%>
|
||||
<%= link_to "匿名","javascript:void(0)"%>
|
||||
<% end%>
|
||||
</li>
|
||||
<li class=" hwork_tit_e" style="width: 440px">
|
||||
<li class=" hwork_tit_e" style="width: 410px">
|
||||
<%= link_to student_work.name, student_work_path(student_work),:remote => true, :title => student_work.name, :class => "c_blue02"%>
|
||||
</li>
|
||||
<% my_score = student_work_score(student_work,User.current) %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<li class="w70 ">
|
||||
<span href="javascript:void(0);" class="c_dark f14 fb fl ml15 ">学号</span>
|
||||
<li class="hwork_num ">
|
||||
<span class="f14 f_b c_dark fl ">学号</span>
|
||||
</li>
|
||||
<li class="w70">
|
||||
<li class="hwork_name f14 fb c_dark">
|
||||
<span class="c_dark f14 fb fl ">学生姓名</span>
|
||||
</li>
|
||||
<li class="hwork_tit_e">
|
||||
|
|
|
@ -635,8 +635,8 @@ a:hover.icon_add{background:url(images/icons.png) -20px -310px no-repeat;}
|
|||
.hwork_tit a{ width:205px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
||||
.hwork_code{ width:56px; text-align:center; }
|
||||
.hwork_code02{ width:60px; text-align:center; }
|
||||
.hwork_tit_e{ width:440px; float:left; }
|
||||
.hwork_tit_e a{ width:455px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
||||
.hwork_tit_e{ width:420px; float:left; }
|
||||
.hwork_tit_e a{ width:405px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
||||
.hwork_num{ width:90px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
||||
.mr18{ margin-right:18px;}
|
||||
a.hwork_center{ display:block; width:60px; margin-right:5px;overflow: hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||
|
|
Loading…
Reference in New Issue