commit
e9c7ad9337
@ -0,0 +1,386 @@
|
|||||||
|
GIT
|
||||||
|
remote: http://github.com/guange2015/wechat.git
|
||||||
|
revision: a18c3d6603cb1aa7bd1fe887b17f67426be01f35
|
||||||
|
specs:
|
||||||
|
wechat (0.7.1)
|
||||||
|
activerecord (>= 3.2, < 5.1.x)
|
||||||
|
http (~> 1.0, >= 1.0.1)
|
||||||
|
nokogiri (>= 1.6.0)
|
||||||
|
thor
|
||||||
|
|
||||||
|
PATH
|
||||||
|
remote: lib/gitlab-cli
|
||||||
|
specs:
|
||||||
|
gitlab (3.2.0)
|
||||||
|
httparty
|
||||||
|
terminal-table
|
||||||
|
|
||||||
|
PATH
|
||||||
|
remote: lib/grack
|
||||||
|
specs:
|
||||||
|
grack (2.0.2)
|
||||||
|
rack (~> 1.4.5)
|
||||||
|
|
||||||
|
PATH
|
||||||
|
remote: lib/rails_kindeditor
|
||||||
|
specs:
|
||||||
|
rails_kindeditor (0.4.5)
|
||||||
|
carrierwave
|
||||||
|
mini_magick
|
||||||
|
|
||||||
|
GEM
|
||||||
|
remote: https://ruby.taobao.org/
|
||||||
|
specs:
|
||||||
|
actionmailer (3.2.22.2)
|
||||||
|
actionpack (= 3.2.22.2)
|
||||||
|
mail (~> 2.5.4)
|
||||||
|
actionpack (3.2.22.2)
|
||||||
|
activemodel (= 3.2.22.2)
|
||||||
|
activesupport (= 3.2.22.2)
|
||||||
|
builder (~> 3.0.0)
|
||||||
|
erubis (~> 2.7.0)
|
||||||
|
journey (~> 1.0.4)
|
||||||
|
rack (~> 1.4.5)
|
||||||
|
rack-cache (~> 1.2)
|
||||||
|
rack-test (~> 0.6.1)
|
||||||
|
sprockets (~> 2.2.1)
|
||||||
|
activemodel (3.2.22.2)
|
||||||
|
activesupport (= 3.2.22.2)
|
||||||
|
builder (~> 3.0.0)
|
||||||
|
activerecord (3.2.22.2)
|
||||||
|
activemodel (= 3.2.22.2)
|
||||||
|
activesupport (= 3.2.22.2)
|
||||||
|
arel (~> 3.0.2)
|
||||||
|
tzinfo (~> 0.3.29)
|
||||||
|
activeresource (3.2.22.2)
|
||||||
|
activemodel (= 3.2.22.2)
|
||||||
|
activesupport (= 3.2.22.2)
|
||||||
|
activesupport (3.2.22.2)
|
||||||
|
i18n (~> 0.6, >= 0.6.4)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
acts-as-taggable-on (2.4.1)
|
||||||
|
rails (>= 3, < 5)
|
||||||
|
addressable (2.4.0)
|
||||||
|
ansi (1.5.0)
|
||||||
|
arel (3.0.3)
|
||||||
|
axiom-types (0.1.1)
|
||||||
|
descendants_tracker (~> 0.0.4)
|
||||||
|
ice_nine (~> 0.11.0)
|
||||||
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
|
better_errors (1.1.0)
|
||||||
|
coderay (>= 1.0.0)
|
||||||
|
erubis (>= 2.6.6)
|
||||||
|
binding_of_caller (0.7.2)
|
||||||
|
debug_inspector (>= 0.0.1)
|
||||||
|
builder (3.0.0)
|
||||||
|
byebug (8.2.2)
|
||||||
|
carrierwave (0.10.0)
|
||||||
|
activemodel (>= 3.2.0)
|
||||||
|
activesupport (>= 3.2.0)
|
||||||
|
json (>= 1.7)
|
||||||
|
mime-types (>= 1.16)
|
||||||
|
chinese_pinyin (1.0.0)
|
||||||
|
climate_control (0.0.3)
|
||||||
|
activesupport (>= 3.0)
|
||||||
|
cocaine (0.5.8)
|
||||||
|
climate_control (>= 0.0.3, < 1.0)
|
||||||
|
coderay (1.1.1)
|
||||||
|
coercible (1.0.0)
|
||||||
|
descendants_tracker (~> 0.0.1)
|
||||||
|
coffee-rails (3.2.2)
|
||||||
|
coffee-script (>= 2.2.0)
|
||||||
|
railties (~> 3.2.0)
|
||||||
|
coffee-script (2.4.1)
|
||||||
|
coffee-script-source
|
||||||
|
execjs
|
||||||
|
coffee-script-source (1.10.0)
|
||||||
|
daemons (1.2.3)
|
||||||
|
debug_inspector (0.0.2)
|
||||||
|
delayed_job (4.1.1)
|
||||||
|
activesupport (>= 3.0, < 5.0)
|
||||||
|
delayed_job_active_record (4.1.0)
|
||||||
|
activerecord (>= 3.0, < 5)
|
||||||
|
delayed_job (>= 3.0, < 5)
|
||||||
|
descendants_tracker (0.0.4)
|
||||||
|
thread_safe (~> 0.3, >= 0.3.1)
|
||||||
|
diff-lcs (1.2.5)
|
||||||
|
domain_name (0.5.20160216)
|
||||||
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
|
elasticsearch (1.0.15)
|
||||||
|
elasticsearch-api (= 1.0.15)
|
||||||
|
elasticsearch-transport (= 1.0.15)
|
||||||
|
elasticsearch-api (1.0.15)
|
||||||
|
multi_json
|
||||||
|
elasticsearch-model (0.1.8)
|
||||||
|
activesupport (> 3)
|
||||||
|
elasticsearch (> 0.4)
|
||||||
|
hashie
|
||||||
|
elasticsearch-rails (0.1.8)
|
||||||
|
elasticsearch-transport (1.0.15)
|
||||||
|
faraday
|
||||||
|
multi_json
|
||||||
|
equalizer (0.0.11)
|
||||||
|
erubis (2.7.0)
|
||||||
|
execjs (2.6.0)
|
||||||
|
factory_girl (4.5.0)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
factory_girl_rails (4.6.0)
|
||||||
|
factory_girl (~> 4.5.0)
|
||||||
|
railties (>= 3.0.0)
|
||||||
|
faraday (0.9.2)
|
||||||
|
multipart-post (>= 1.2, < 3)
|
||||||
|
fastercsv (1.5.5)
|
||||||
|
grape (0.9.0)
|
||||||
|
activesupport
|
||||||
|
builder
|
||||||
|
hashie (>= 2.1.0)
|
||||||
|
multi_json (>= 1.3.2)
|
||||||
|
multi_xml (>= 0.5.2)
|
||||||
|
rack (>= 1.3.0)
|
||||||
|
rack-accept
|
||||||
|
rack-mount
|
||||||
|
virtus (>= 1.0.0)
|
||||||
|
grape-entity (0.4.8)
|
||||||
|
activesupport
|
||||||
|
multi_json (>= 1.3.2)
|
||||||
|
grape-swagger (0.10.4)
|
||||||
|
grape (>= 0.8.0)
|
||||||
|
grape-entity (< 0.5.0)
|
||||||
|
hashie (3.4.3)
|
||||||
|
hike (1.2.3)
|
||||||
|
htmlentities (4.3.4)
|
||||||
|
http (1.0.2)
|
||||||
|
addressable (~> 2.3)
|
||||||
|
http-cookie (~> 1.0)
|
||||||
|
http-form_data (~> 1.0.1)
|
||||||
|
http_parser.rb (~> 0.6.0)
|
||||||
|
http-cookie (1.0.2)
|
||||||
|
domain_name (~> 0.5)
|
||||||
|
http-form_data (1.0.1)
|
||||||
|
http_parser.rb (0.6.0)
|
||||||
|
httparty (0.13.7)
|
||||||
|
json (~> 1.8)
|
||||||
|
multi_xml (>= 0.5.2)
|
||||||
|
i18n (0.6.11)
|
||||||
|
ice_nine (0.11.2)
|
||||||
|
iconv (1.0.4)
|
||||||
|
journey (1.0.4)
|
||||||
|
jquery-rails (2.0.3)
|
||||||
|
railties (>= 3.1.0, < 5.0)
|
||||||
|
thor (~> 0.14)
|
||||||
|
json (1.8.3)
|
||||||
|
kaminari (0.16.3)
|
||||||
|
actionpack (>= 3.0.0)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
libv8 (3.16.14.13)
|
||||||
|
mail (2.5.4)
|
||||||
|
mime-types (~> 1.16)
|
||||||
|
treetop (~> 1.4.8)
|
||||||
|
method_source (0.8.2)
|
||||||
|
mime-types (1.25.1)
|
||||||
|
mini_magick (4.4.0)
|
||||||
|
mini_portile2 (2.0.0)
|
||||||
|
multi_json (1.11.2)
|
||||||
|
multi_xml (0.5.5)
|
||||||
|
multipart-post (2.0.0)
|
||||||
|
mysql2 (0.3.18)
|
||||||
|
net-ldap (0.3.1)
|
||||||
|
netrc (0.11.0)
|
||||||
|
nokogiri (1.6.7.2)
|
||||||
|
mini_portile2 (~> 2.0.0.rc2)
|
||||||
|
paperclip (3.5.4)
|
||||||
|
activemodel (>= 3.0.0)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
cocaine (~> 0.5.3)
|
||||||
|
mime-types
|
||||||
|
polyglot (0.3.5)
|
||||||
|
pry (0.10.3)
|
||||||
|
coderay (~> 1.1.0)
|
||||||
|
method_source (~> 0.8.1)
|
||||||
|
slop (~> 3.4)
|
||||||
|
pry-byebug (3.3.0)
|
||||||
|
byebug (~> 8.0)
|
||||||
|
pry (~> 0.10)
|
||||||
|
pry-rails (0.3.4)
|
||||||
|
pry (>= 0.9.10)
|
||||||
|
pry-stack_explorer (0.4.9.2)
|
||||||
|
binding_of_caller (>= 0.7)
|
||||||
|
pry (>= 0.9.11)
|
||||||
|
rack (1.4.7)
|
||||||
|
rack-accept (0.4.5)
|
||||||
|
rack (>= 0.4)
|
||||||
|
rack-cache (1.6.1)
|
||||||
|
rack (>= 0.4)
|
||||||
|
rack-cors (0.4.0)
|
||||||
|
rack-mount (0.8.3)
|
||||||
|
rack (>= 1.0.0)
|
||||||
|
rack-openid (1.4.2)
|
||||||
|
rack (>= 1.1.0)
|
||||||
|
ruby-openid (>= 2.1.8)
|
||||||
|
rack-raw-upload (1.1.1)
|
||||||
|
multi_json
|
||||||
|
rack-ssl (1.3.4)
|
||||||
|
rack
|
||||||
|
rack-test (0.6.3)
|
||||||
|
rack (>= 1.0)
|
||||||
|
rails (3.2.22.2)
|
||||||
|
actionmailer (= 3.2.22.2)
|
||||||
|
actionpack (= 3.2.22.2)
|
||||||
|
activerecord (= 3.2.22.2)
|
||||||
|
activeresource (= 3.2.22.2)
|
||||||
|
activesupport (= 3.2.22.2)
|
||||||
|
bundler (~> 1.0)
|
||||||
|
railties (= 3.2.22.2)
|
||||||
|
railties (3.2.22.2)
|
||||||
|
actionpack (= 3.2.22.2)
|
||||||
|
activesupport (= 3.2.22.2)
|
||||||
|
rack-ssl (~> 1.3.2)
|
||||||
|
rake (>= 0.8.7)
|
||||||
|
rdoc (~> 3.4)
|
||||||
|
thor (>= 0.14.6, < 2.0)
|
||||||
|
rake (10.5.0)
|
||||||
|
rdoc (3.12.2)
|
||||||
|
json (~> 1.4)
|
||||||
|
redis (3.2.2)
|
||||||
|
redis-actionpack (3.2.4)
|
||||||
|
actionpack (~> 3.2.0)
|
||||||
|
redis-rack (~> 1.4.4)
|
||||||
|
redis-store (~> 1.1.4)
|
||||||
|
redis-activesupport (3.2.5)
|
||||||
|
activesupport (~> 3.2.0)
|
||||||
|
redis-store (~> 1.1.0)
|
||||||
|
redis-rack (1.4.4)
|
||||||
|
rack (~> 1.4.0)
|
||||||
|
redis-store (~> 1.1.4)
|
||||||
|
redis-rails (3.2.4)
|
||||||
|
redis-actionpack (~> 3.2.4)
|
||||||
|
redis-activesupport (~> 3.2.4)
|
||||||
|
redis-store (~> 1.1.4)
|
||||||
|
redis-store (1.1.7)
|
||||||
|
redis (>= 2.2)
|
||||||
|
ref (2.0.0)
|
||||||
|
rest-client (1.8.0)
|
||||||
|
http-cookie (>= 1.0.2, < 2.0)
|
||||||
|
mime-types (>= 1.16, < 3.0)
|
||||||
|
netrc (~> 0.7)
|
||||||
|
rich (1.4.6)
|
||||||
|
jquery-rails
|
||||||
|
kaminari
|
||||||
|
mime-types
|
||||||
|
paperclip
|
||||||
|
rack-raw-upload
|
||||||
|
rails (>= 3.2.0)
|
||||||
|
sass-rails
|
||||||
|
rspec-core (3.4.3)
|
||||||
|
rspec-support (~> 3.4.0)
|
||||||
|
rspec-expectations (3.4.0)
|
||||||
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
|
rspec-support (~> 3.4.0)
|
||||||
|
rspec-mocks (3.4.1)
|
||||||
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
|
rspec-support (~> 3.4.0)
|
||||||
|
rspec-rails (3.4.2)
|
||||||
|
actionpack (>= 3.0, < 4.3)
|
||||||
|
activesupport (>= 3.0, < 4.3)
|
||||||
|
railties (>= 3.0, < 4.3)
|
||||||
|
rspec-core (~> 3.4.0)
|
||||||
|
rspec-expectations (~> 3.4.0)
|
||||||
|
rspec-mocks (~> 3.4.0)
|
||||||
|
rspec-support (~> 3.4.0)
|
||||||
|
rspec-support (3.4.1)
|
||||||
|
ruby-ole (1.2.12)
|
||||||
|
ruby-openid (2.1.8)
|
||||||
|
rubyzip (1.2.0)
|
||||||
|
sass (3.4.21)
|
||||||
|
sass-rails (3.2.6)
|
||||||
|
railties (~> 3.2.0)
|
||||||
|
sass (>= 3.1.10)
|
||||||
|
tilt (~> 1.3)
|
||||||
|
seems_rateable (1.0.13)
|
||||||
|
jquery-rails
|
||||||
|
rails
|
||||||
|
slop (3.6.0)
|
||||||
|
spreadsheet (1.1.1)
|
||||||
|
ruby-ole (>= 1.0)
|
||||||
|
sprockets (2.2.3)
|
||||||
|
hike (~> 1.2)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
rack (~> 1.0)
|
||||||
|
tilt (~> 1.1, != 1.3.0)
|
||||||
|
terminal-table (1.5.2)
|
||||||
|
therubyracer (0.12.2)
|
||||||
|
libv8 (~> 3.16.14.0)
|
||||||
|
ref
|
||||||
|
thor (0.19.1)
|
||||||
|
thread_safe (0.3.5)
|
||||||
|
tilt (1.4.1)
|
||||||
|
treetop (1.4.15)
|
||||||
|
polyglot
|
||||||
|
polyglot (>= 0.3.1)
|
||||||
|
tzinfo (0.3.46)
|
||||||
|
uglifier (2.7.2)
|
||||||
|
execjs (>= 0.3.0)
|
||||||
|
json (>= 1.8.0)
|
||||||
|
unf (0.1.4)
|
||||||
|
unf_ext
|
||||||
|
unf_ext (0.0.7.2)
|
||||||
|
virtus (1.0.5)
|
||||||
|
axiom-types (~> 0.1)
|
||||||
|
coercible (~> 1.0)
|
||||||
|
descendants_tracker (~> 0.0, >= 0.0.3)
|
||||||
|
equalizer (~> 0.0, >= 0.0.9)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
acts-as-taggable-on (= 2.4.1)
|
||||||
|
ansi
|
||||||
|
better_errors (~> 1.1.0)
|
||||||
|
binding_of_caller
|
||||||
|
builder (= 3.0.0)
|
||||||
|
chinese_pinyin
|
||||||
|
coderay (~> 1.1.0)
|
||||||
|
coffee-rails (~> 3.2.1)
|
||||||
|
daemons
|
||||||
|
delayed_job_active_record
|
||||||
|
elasticsearch-model
|
||||||
|
elasticsearch-rails
|
||||||
|
factory_girl_rails
|
||||||
|
fastercsv (~> 1.5.0)
|
||||||
|
gitlab!
|
||||||
|
grack!
|
||||||
|
grape (~> 0.9.0)
|
||||||
|
grape-entity
|
||||||
|
grape-swagger
|
||||||
|
htmlentities
|
||||||
|
i18n (~> 0.6.0)
|
||||||
|
iconv
|
||||||
|
jquery-rails (~> 2.0.2)
|
||||||
|
kaminari
|
||||||
|
mysql2 (= 0.3.18)
|
||||||
|
net-ldap (~> 0.3.1)
|
||||||
|
paperclip (~> 3.5.4)
|
||||||
|
pry-byebug
|
||||||
|
pry-rails
|
||||||
|
pry-stack_explorer
|
||||||
|
rack-cors
|
||||||
|
rack-openid
|
||||||
|
rails (~> 3.2)
|
||||||
|
rails_kindeditor!
|
||||||
|
redis-rails
|
||||||
|
rest-client
|
||||||
|
rich (= 1.4.6)
|
||||||
|
rspec-rails (~> 3.0)
|
||||||
|
ruby-ole
|
||||||
|
ruby-openid (~> 2.1.4)
|
||||||
|
rubyzip
|
||||||
|
sass-rails (~> 3.2.3)
|
||||||
|
seems_rateable (~> 1.0.13)
|
||||||
|
spreadsheet
|
||||||
|
therubyracer
|
||||||
|
uglifier (>= 1.0.3)
|
||||||
|
wechat!
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.10.6
|
@ -1 +1,2 @@
|
|||||||
$("#st_groups").html("<%= escape_javascript( render :partial => 'new_groups_name', locals: {:course_groups => @course_groups})%>");
|
$("#st_groups").html("<%= escape_javascript( render :partial => 'new_groups_name', locals: {:course_groups => @course_groups})%>");
|
||||||
|
$("#member_content").html("<%= escape_javascript( render :partial => 'new_member_list', :locals => {:members => @members})%>");
|
@ -0,0 +1,7 @@
|
|||||||
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'courses/show_member_act_score', :locals => {:member => @member}) %>');
|
||||||
|
showModal('ajax-modal', '300px');
|
||||||
|
$('#ajax-modal').siblings().remove();
|
||||||
|
$('#ajax-modal').before("<span>" +
|
||||||
|
"<a href='javascript:void(0)' onclick='hidden_homework_score_form();'><img src='/images/bid/close.png' width='26px' height='26px' style='margin-left: 275px;' /></a></span>");
|
||||||
|
$('#ajax-modal').parent().css("top","30%").css("left","40%").css("position","fixed").css("border","3px solid #269ac9");
|
||||||
|
$('#ajax-modal').parent().addClass("new-watcher");
|
@ -0,0 +1,81 @@
|
|||||||
|
<div class="fl" style="padding-bottom:10px; width:720px;">
|
||||||
|
<span class="c_dark f14 fb fl mr30">
|
||||||
|
测验
|
||||||
|
<font class="f12 c_red">
|
||||||
|
(<%= @exercise_count%>人已交)
|
||||||
|
</font>
|
||||||
|
<% if !@is_teacher && @exercise_users_list.empty?%>
|
||||||
|
<span class="f12 c_red">您尚未提交</span>
|
||||||
|
<% elsif !@is_teacher && !@exercise_users_list.empty?%>
|
||||||
|
<span class="f12 c_red">您已提交</span>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
<%#if @is_teacher || @exercise.exercise_status == 3%>
|
||||||
|
<!--<div class="hworkSearchBox">
|
||||||
|
<input type="text" id="course_student_name" value="<%#= @name%>" placeholder="姓名、学号、邮箱" class="hworkSearchInput" onkeypress="SearchByName('<%#= student_work_index_path(:homework => @homework.id)%>',event);"/>
|
||||||
|
<a class="hworkSearchIcon" id="search_in_student_work" onclick="SearchByName_1('<%#= student_work_index_path(:homework => @homework.id)%>');" href="javascript:void(0)"></a>
|
||||||
|
</div>-->
|
||||||
|
<%#= select_tag(:student_work_in_group,options_for_select(course_group_list(@course),@group), {:class => "classSplit"}) unless course_group_list(@course).empty? %>
|
||||||
|
<%# end%>
|
||||||
|
<span class="fr c_grey"> <a href="javascript:void(0);" class="linkGrey2" id="homework_info_show" style="display: none">[ 显示测验信息 ]</a> </span>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
|
||||||
|
<div class="fl">
|
||||||
|
<%= render :partial => "student_table"%>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
|
||||||
|
<% @exercise_users_list.each do |exercise|%>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(".student_work_<%= exercise.id%>").mouseenter(function(){
|
||||||
|
$("#work_click_<%= exercise.id%>").show();
|
||||||
|
}).mouseleave(function(){
|
||||||
|
$("#work_click_<%= exercise.id%>").hide();
|
||||||
|
});
|
||||||
|
$(function(){
|
||||||
|
<% if Time.parse(h(@exercise.end_time)).strftime("%Y-%m-%d-%H-%M-%S") <= Time.now.strftime("%Y-%m-%d-%H-%M-%S") %>
|
||||||
|
$("#show_student_result_div_<%= exercise.id%>").on('click',function() {
|
||||||
|
window.location.href = '<%=show_student_result_exercise_path(@exercise,:user_id => exercise.user_id) %>';
|
||||||
|
});
|
||||||
|
<% else %>
|
||||||
|
$("#show_student_result_div_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
$("#student_name_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
$("#student_id_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
$("#student_class_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
<% end %>
|
||||||
|
});
|
||||||
|
/*function show_result(id) {
|
||||||
|
window.location.href = '<%#=show_student_result_exercise_path(@exercise,:user_id => exercise.user.id) %>';
|
||||||
|
}*/
|
||||||
|
</script>
|
||||||
|
<ul class="hworkListRow" id="student_work_<%= exercise.id%>">
|
||||||
|
<li class="ml5 mr5" style="width:28px; text-align:center;">1</li>
|
||||||
|
<li class="hworkPortrait mt15 mr10">
|
||||||
|
<%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;"),user_activities_path(exercise.user)) %>
|
||||||
|
</li>
|
||||||
|
<li class="hworkStName" title="姓名" id="student_name_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
<%=exercise.user.show_name %>
|
||||||
|
</li><li class="hworkStID pl15 pr10" title="学号" id="student_id_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
<%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%>
|
||||||
|
</li>
|
||||||
|
<li class="hworkStID" title="班级" id="student_class_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
--
|
||||||
|
</li>
|
||||||
|
<li class="hworkList130 ml200 c_grey student_work_<%= exercise.id%>">
|
||||||
|
<% if exercise.created_at%>
|
||||||
|
<%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
|
||||||
|
<% if @exercise.end_time <= exercise.created_at %>
|
||||||
|
<span class="c_red">[未答]</span>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="hworkList50 <%= score_color exercise.score%> student_final_scor_info">
|
||||||
|
<%= exercise.score.nil? ? "--" : format("%.1f",exercise.score)%>
|
||||||
|
</li>
|
||||||
|
<li class="hworkTip" style="display: none" id="work_click_<%= exercise.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="cl"></div>
|
||||||
|
<% end%>
|
@ -1,23 +1,71 @@
|
|||||||
<ul class="hworkUl">
|
<table class="hwork-table-wrap">
|
||||||
<li class="hworkList340 hworkH30 width530">
|
<tr class="b_grey hworkH30" style="border-bottom:1px solid #eaeaea;">
|
||||||
|
<th class="hworkList340 width530" colspan="6">
|
||||||
<span class="c_dark f14 fb fl mr5">序号</span>
|
<span class="c_dark f14 fb fl mr5">序号</span>
|
||||||
<span class="c_dark f14 fb fl mr55"> </span>
|
<span class="c_dark f14 fb fl mr55"> </span>
|
||||||
<span class="c_dark f14 fb fl mr60">姓名</span>
|
<span class="c_dark f14 fb fl mr60">姓名</span>
|
||||||
<span class="c_dark f14 fb fl mr60">学号</span>
|
<span class="c_dark f14 fb fl mr60">学号</span>
|
||||||
<span class="c_dark f14 fb fl">班级</span>
|
<span class="c_dark f14 fb fl">班级</span>
|
||||||
</li>
|
</th>
|
||||||
|
<th class="hworkList130">
|
||||||
<li class="hworkList130 hworkH30">
|
|
||||||
<%= link_to "时间",'',:class => "c_dark f14 fb fl ml50" ,:remote => true%>
|
<%= link_to "时间",'',:class => "c_dark f14 fb fl ml50" ,:remote => true%>
|
||||||
<%# if @show_all && @order == "created_at"%>
|
</th>
|
||||||
<%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
<th class="hworkList50">
|
||||||
<%# end%>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="hworkList50 hworkH30">
|
|
||||||
<%= link_to "成绩",'',:class => "c_dark f14 fb fl ml10",:remote => true%>
|
<%= link_to "成绩",'',:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
<%# if @show_all && @order == "score"%>
|
</th>
|
||||||
<%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
</tr>
|
||||||
<%# end%>
|
|
||||||
</li>
|
<% @exercise_users_list.each do |exercise|%>
|
||||||
</ul>
|
<script type="text/javascript">
|
||||||
|
$(".student_work_<%= exercise.id%>").mouseenter(function(){
|
||||||
|
$("#work_click_<%= exercise.id%>").show();
|
||||||
|
}).mouseleave(function(){
|
||||||
|
$("#work_click_<%= exercise.id%>").hide();
|
||||||
|
});
|
||||||
|
$(function(){
|
||||||
|
<% if Time.parse(h(@exercise.end_time)).strftime("%Y-%m-%d-%H-%M-%S") <= Time.now.strftime("%Y-%m-%d-%H-%M-%S") %>
|
||||||
|
$("#show_student_result_div_<%= exercise.id%>").on('click',function() {
|
||||||
|
window.location.href = '<%=show_student_result_exercise_path(@exercise,:user_id => exercise.user_id) %>';
|
||||||
|
});
|
||||||
|
<% else %>
|
||||||
|
$("#show_student_result_div_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
$("#student_name_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
$("#student_id_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
$("#student_class_<%= exercise.id%>").attr("title","截止日期未到,暂不能查看学生答题结果");
|
||||||
|
<% end %>
|
||||||
|
});
|
||||||
|
/*function show_result(id) {
|
||||||
|
window.location.href = '<%#=show_student_result_exercise_path(@exercise,:user_id => exercise.user.id) %>';
|
||||||
|
}*/
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<tr class="hworkListRow" id="student_work_<%= exercise.id%>">
|
||||||
|
<td class="pl5 pr5" style="width:28px; text-align:center;">1</td>
|
||||||
|
<td class="hworkPortrait pr10 float-none">
|
||||||
|
<%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;", :class => "mt15"),user_activities_path(exercise.user)) %>
|
||||||
|
</td>
|
||||||
|
<td class="hworkStName" title="姓名" id="student_name_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
<%=exercise.user.show_name %>
|
||||||
|
</td>
|
||||||
|
<td class="hworkStID pl15 pr10 float-none" title="学号" id="student_id_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
<span class="hidden fl" style="width:80px;"><%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%></span>
|
||||||
|
</td>
|
||||||
|
<td class="hworkStID float-none" title="班级" id="student_class_<%= exercise.id%>" style="cursor:pointer;">
|
||||||
|
--
|
||||||
|
</td>
|
||||||
|
<td width="200"> </td>
|
||||||
|
<td class="hworkList130 c_grey student_work_<%= exercise.id%>">
|
||||||
|
<% if exercise.created_at%>
|
||||||
|
<%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
|
||||||
|
<% if @exercise.end_time <= exercise.created_at %>
|
||||||
|
<span class="c_red">[未答]</span>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
|
<td class="hworkList50 <%= score_color exercise.score%> student_final_scor_info">
|
||||||
|
<%= exercise.score.nil? ? "--" : format("%.1f",exercise.score)%>
|
||||||
|
</td>
|
||||||
|
<td><div style="position:relative;"><div class="hworkTip" style="display: none" id="work_click_<%= exercise.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></div></div></td>
|
||||||
|
</tr>
|
||||||
|
<% end%>
|
||||||
|
</table>
|
@ -0,0 +1,23 @@
|
|||||||
|
<ul class="hworkUl">
|
||||||
|
<li class="hworkList340 hworkH30 width530">
|
||||||
|
<span class="c_dark f14 fb fl mr5">序号</span>
|
||||||
|
<span class="c_dark f14 fb fl mr55"> </span>
|
||||||
|
<span class="c_dark f14 fb fl mr60">姓名</span>
|
||||||
|
<span class="c_dark f14 fb fl mr60">学号</span>
|
||||||
|
<span class="c_dark f14 fb fl">班级</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="hworkList130 hworkH30">
|
||||||
|
<%= link_to "时间",'',:class => "c_dark f14 fb fl ml50" ,:remote => true%>
|
||||||
|
<%# if @show_all && @order == "created_at"%>
|
||||||
|
<%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
|
<%# end%>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="hworkList50 hworkH30">
|
||||||
|
<%= link_to "成绩",'',:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
|
<%# if @show_all && @order == "score"%>
|
||||||
|
<%#= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
|
<%# end%>
|
||||||
|
</li>
|
||||||
|
</ul>
|
@ -1,6 +1,6 @@
|
|||||||
//location.reload();
|
//location.reload();
|
||||||
<% if params[:detail_page] %>
|
<% if params[:detail_page] %>
|
||||||
window.location.href = '<%= organization_org_document_comments_path(:organization_id => @org_document_comment.root.organization_id)%>';
|
window.location.href = '<%= organization_path(params[:organization_id],:org_subfield_id => @org_sub_id )%>';
|
||||||
<% else %>
|
<% else %>
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
<% end %>
|
<% end %>
|
@ -1,27 +1,39 @@
|
|||||||
<ul class="hworkUl">
|
<table class="hwork-table-wrap">
|
||||||
<li class="hworkList30 hworkH30 ml5 mr5"><span class="c_dark f14 fb fl">序号</span></li>
|
<tr class="b_grey hworkH30" style="border-bottom:1px solid #eaeaea;">
|
||||||
<li class="hworkList50 hworkH30"> </li>
|
<th class="hworkList30 hworkH30 pl5 pr5">序号</th>
|
||||||
<li class="hworkList260 hworkH30">
|
<th class="hworkList50"> </th>
|
||||||
<span class="f14 fb fl">作品名称</span>
|
<th class="hworkList260" style="text-align:left;">作品名称</th>
|
||||||
</li>
|
|
||||||
<% if @homework.homework_type != 3 %>
|
<% if @homework.homework_type != 3 %>
|
||||||
<li class="hworkList80 hworkH30"><span class="HomeworkStuTitle f14 fb fl">姓名</span></li>
|
<th class="hworkList80">
|
||||||
<li class="hworkList80 hworkH30"><span class="HomeworkStuTitle f14 fb fl">学号</span></li>
|
<span class="HomeworkStuTitle f14 fb fl">姓名</span>
|
||||||
|
</th>
|
||||||
|
<th class="hworkList80">
|
||||||
|
<span class="HomeworkStuTitle f14 fb fl">学号</span>
|
||||||
|
</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 %>
|
||||||
<li class="hworkList160 hworkH30"><span class="HomeworkStuTitle f14 fb fl">关联项目</span></li>
|
<th class="hworkList160">
|
||||||
|
<span class="HomeworkStuTitle f14 fb fl">关联项目</span>
|
||||||
|
</th>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<th class="hworkList130 pl10">
|
||||||
<li class="hworkList130 hworkH30 fb ml10">
|
|
||||||
时间
|
时间
|
||||||
</li>
|
</th>
|
||||||
|
|
||||||
<% if @homework.homework_type == 2%>
|
<% if @homework.homework_type == 2%>
|
||||||
<li class="hworkList50 hworkH30 fb">
|
<th class="hworkList50">
|
||||||
系统
|
系统
|
||||||
</li>
|
</th>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
<th class="hworkList50 pr10 pl10" style="font-size:12px;">
|
||||||
<li class="hworkList50 hworkH30 fb mr10 ml10">
|
|
||||||
我的评分
|
我的评分
|
||||||
</li>
|
</th>
|
||||||
</ul>
|
</tr>
|
||||||
|
<% @stundet_works.each_with_index do |student_work, i|%>
|
||||||
|
<%= render :partial => "evaluation_work", :locals => {:student_work => student_work, :index => i}%>
|
||||||
|
<tr>
|
||||||
|
<td colspan="12">
|
||||||
|
<div id="about_hwork_<%= student_work.id%>">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end%>
|
||||||
|
</table>
|
@ -0,0 +1,27 @@
|
|||||||
|
<ul class="hworkUl">
|
||||||
|
<li class="hworkList30 hworkH30 ml5 mr5"><span class="c_dark f14 fb fl">序号</span></li>
|
||||||
|
<li class="hworkList50 hworkH30"> </li>
|
||||||
|
<li class="hworkList260 hworkH30">
|
||||||
|
<span class="f14 fb fl">作品名称</span>
|
||||||
|
</li>
|
||||||
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<li class="hworkList80 hworkH30"><span class="HomeworkStuTitle f14 fb fl">姓名</span></li>
|
||||||
|
<li class="hworkList80 hworkH30"><span class="HomeworkStuTitle f14 fb fl">学号</span></li>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<li class="hworkList160 hworkH30"><span class="HomeworkStuTitle f14 fb fl">关联项目</span></li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<li class="hworkList130 hworkH30 fb ml10">
|
||||||
|
时间
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<% if @homework.homework_type == 2%>
|
||||||
|
<li class="hworkList50 hworkH30 fb">
|
||||||
|
系统
|
||||||
|
</li>
|
||||||
|
<% end%>
|
||||||
|
|
||||||
|
<li class="hworkList50 hworkH30 fb mr10 ml10" style="font-size:12px;">
|
||||||
|
我的评分
|
||||||
|
</li>
|
||||||
|
</ul>
|
@ -1,73 +1,74 @@
|
|||||||
<ul class="hworkUl">
|
<table class="hwork-table-wrap">
|
||||||
<li class="hworkList30 hworkH30 ml5 mr5"><span class="c_dark f14 fb fl">序号</span></li>
|
<tr class="b_grey hworkH30" style="border-bottom:1px solid #eaeaea;">
|
||||||
<li class="hworkList50"> </li>
|
<th class="hworkList30 hworkH30 pl5 pr5">序号</th>
|
||||||
<li class="<%= @homework.homework_type == 2 ? 'hworkList80 mr10' : 'hworkList130 mr10'%> hworkH30">
|
<th class="hworkList50"> </th>
|
||||||
<span class="c_dark f14 fb fl <%#= @homework.homework_type == 2 ? 'mr90 ml50' : 'mr150 ml50'%>">作品名称</span>
|
<th class="<%= @homework.homework_type == 2 ? 'hworkList80 pr10' : 'hworkList130 pr10'%>" style="text-align:left;">作品名称</th>
|
||||||
</li>
|
|
||||||
<% if @homework.homework_type != 3 %>
|
<% if @homework.homework_type != 3 %>
|
||||||
<!--<span class="c_dark f14 fb fl mr50">姓名</span>-->
|
<th class="<%=@homework.anonymous_comment == 1 ? 'hworkList100' : 'hworkList60'%> pr10">
|
||||||
<li class="<%=@homework.anonymous_comment == 1 ? 'hworkList100' : 'hworkList60'%> hworkH30 mr10">
|
|
||||||
<%= 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%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</th>
|
||||||
<li class="<%=@homework.anonymous_comment == 1 ? 'hworkList90' : 'hworkList80'%> hworkH30 mr10">
|
<th class="<%=@homework.anonymous_comment == 1 ? 'hworkList90' : 'hworkList80'%> pr10">
|
||||||
<!--<span class="c_dark f14 fb fl">学号</span>-->
|
|
||||||
<%= link_to "学号",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_id", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml30" ,:remote => true%>
|
<%= link_to "学号",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_id", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml30" ,:remote => true%>
|
||||||
<% if @show_all && @order == "student_id"%>
|
<% if @show_all && @order == "student_id"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_id", :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 => "student_id", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</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 %>
|
||||||
<li class="hworkList160 hworkH30">
|
<th class="<%=@homework.anonymous_comment == 1 ? 'hworkList220' : 'hworkList160'%>">
|
||||||
<span class="c_dark f14 fb">关联项目</span>
|
<span class="c_dark f14 fb">关联项目</span>
|
||||||
</li>
|
</th>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<th class="hworkList130">
|
||||||
<li class="hworkList130 hworkH30">
|
|
||||||
<%= 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%>
|
||||||
<% if @show_all && @order == "created_at"%>
|
<% if @show_all && @order == "created_at"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :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 => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</th>
|
||||||
|
<th class="hworkList50">
|
||||||
<li class="hworkList50 hworkH30" >
|
|
||||||
<%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10" ,:remote => true%>
|
<%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10" ,:remote => true%>
|
||||||
<% if @show_all && @order == "teacher_score"%>
|
<% if @show_all && @order == "teacher_score"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teacher_score", :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 => "teacher_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</th>
|
||||||
|
<th class="hworkList50">
|
||||||
<li class="hworkList50 hworkH30">
|
|
||||||
<%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
<%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
<% if @show_all && @order == "teaching_asistant_score"%>
|
<% if @show_all && @order == "teaching_asistant_score"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :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 => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</th>
|
||||||
|
|
||||||
<% if @homework.homework_type == 2%>
|
<% if @homework.homework_type == 2%>
|
||||||
<li class="hworkList50 hworkH30">
|
<th class="hworkList50">
|
||||||
<%= link_to "系统",@show_all ? student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
<%= link_to "系统",@show_all ? student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
<% if @show_all && @order == "system_score"%>
|
<% if @show_all && @order == "system_score"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "system_score", :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 => "system_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</th>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
||||||
<% if @homework.anonymous_comment == 0%>
|
<% if @homework.anonymous_comment == 0%>
|
||||||
<li class="hworkList50 hworkH30">
|
<th class="hworkList50">
|
||||||
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
<% if @show_all && @order == "student_score"%>
|
<% if @show_all && @order == "student_score"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :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 => "student_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</th>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<th class="hworkList50">
|
||||||
<li class="hworkList50 hworkH30">
|
|
||||||
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
<% if @show_all && @order == "score"%>
|
<% if @show_all && @order == "score"%>
|
||||||
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :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 => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</th>
|
||||||
</ul>
|
</tr>
|
||||||
|
<% @stundet_works.each_with_index do |student_work, i|%>
|
||||||
|
<%= render :partial => "evaluation_un_work", :locals => {:student_work => student_work, :index => i}%>
|
||||||
|
<tr>
|
||||||
|
<td colspan="12">
|
||||||
|
<div id="about_hwork_<%= student_work.id%>">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end%>
|
||||||
|
</table>
|
@ -0,0 +1,73 @@
|
|||||||
|
<ul class="hworkUl">
|
||||||
|
<li class="hworkList30 hworkH30 ml5 mr5"><span class="c_dark f14 fb fl">序号</span></li>
|
||||||
|
<li class="hworkList50"> </li>
|
||||||
|
<li class="<%= @homework.homework_type == 2 ? 'hworkList80 mr10' : 'hworkList130 mr10'%> hworkH30">
|
||||||
|
<span class="c_dark f14 fb fl <%#= @homework.homework_type == 2 ? 'mr90 ml50' : 'mr150 ml50'%>">作品名称</span>
|
||||||
|
</li>
|
||||||
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<!--<span class="c_dark f14 fb fl mr50">姓名</span>-->
|
||||||
|
<li class="<%=@homework.anonymous_comment == 1 ? 'hworkList100' : 'hworkList60'%> hworkH30 mr10">
|
||||||
|
<%= 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"%>
|
||||||
|
<%= 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%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
<li class="<%=@homework.anonymous_comment == 1 ? 'hworkList90' : 'hworkList80'%> hworkH30 mr10">
|
||||||
|
<!--<span class="c_dark f14 fb fl">学号</span>-->
|
||||||
|
<%= link_to "学号",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_id", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml30" ,:remote => true%>
|
||||||
|
<% if @show_all && @order == "student_id"%>
|
||||||
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_id", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<li class="hworkList160 hworkH30">
|
||||||
|
<span class="c_dark f14 fb">关联项目</span>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<li class="hworkList130 hworkH30">
|
||||||
|
<%= 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%>
|
||||||
|
<% if @show_all && @order == "created_at"%>
|
||||||
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "created_at", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="hworkList50 hworkH30" >
|
||||||
|
<%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10" ,:remote => true%>
|
||||||
|
<% if @show_all && @order == "teacher_score"%>
|
||||||
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10" ,:remote => true%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="hworkList50 hworkH30">
|
||||||
|
<%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
|
<% if @show_all && @order == "teaching_asistant_score"%>
|
||||||
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<% if @homework.homework_type == 2%>
|
||||||
|
<li class="hworkList50 hworkH30">
|
||||||
|
<%= link_to "系统",@show_all ? student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
|
<% if @show_all && @order == "system_score"%>
|
||||||
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "system_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
<% end%>
|
||||||
|
|
||||||
|
<% if @homework.anonymous_comment == 0%>
|
||||||
|
<li class="hworkList50 hworkH30">
|
||||||
|
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
|
<% if @show_all && @order == "student_score"%>
|
||||||
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<li class="hworkList50 hworkH30">
|
||||||
|
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) : "javascript:void(0)",:class => "c_dark f14 fb fl ml10",:remote => true%>
|
||||||
|
<% if @show_all && @order == "score"%>
|
||||||
|
<%= link_to "", student_work_index_path(:homework => @homework.id,:order => "score", :sort => @score, :name => @name, :group => @group) ,:class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt10",:remote => true%>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
</ul>
|
@ -0,0 +1,101 @@
|
|||||||
|
<a name="<%= student_work.id%>"></a>
|
||||||
|
<ul class="hworkListRow" id="student_work_<%= student_work.id%>">
|
||||||
|
<li class="hworkList30 ml5 mr5" id="work_num_<%=student_work.id %>"><%=index + 1 %></li>
|
||||||
|
<li class="hworkPortrait mt15 mr10">
|
||||||
|
<%= link_to(image_tag(url_to_avatar(student_work.user),:width =>"40",:height => "40",:style => "display:block;"),user_activities_path(student_work.user)) %>
|
||||||
|
</li>
|
||||||
|
<div class="student_work_<%= student_work.id%>">
|
||||||
|
<li class="hworkName mt12 pr10 <%= @homework.homework_type == 2 ? '' : '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>
|
||||||
|
</li>
|
||||||
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<li class="<%=@homework.anonymous_comment == 1 ? 'hworkStName100' : 'hworkStName'%> pr10" title="<%= student_work.user.show_name%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor:pointer;">
|
||||||
|
<%= student_work.user.show_name%>
|
||||||
|
</li>
|
||||||
|
<li class="<%=@homework.anonymous_comment == 1 ? 'hworkStID90' : 'hworkStID'%> pr10" 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;">
|
||||||
|
<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
||||||
|
</li>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<% if student_work.project.is_public || User.current.member_of?(student_work.project) || User.current.admin? %>
|
||||||
|
<li class="hworkPrName" title="项目名称">
|
||||||
|
<%= link_to( student_work.project.name, project_path(student_work.project.id))%>
|
||||||
|
</li>
|
||||||
|
<% else %>
|
||||||
|
<li class="hworkPrName" title="该项目是私有的">
|
||||||
|
<%= student_work.project.name %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<li 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%>
|
||||||
|
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
|
||||||
|
<% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(format_time(student_work.created_at)).strftime("%Y-%m-%d") %>
|
||||||
|
<span class="c_red">[迟交]</span>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
<li class="hworkList50 <%= score_color student_work.teacher_score%>">
|
||||||
|
<%= student_work.teacher_score.nil? ? "--" : format("%.1f",student_work.teacher_score)%>
|
||||||
|
</li>
|
||||||
|
<li class="hworkList50 <%= score_color student_work.teaching_asistant_score%>">
|
||||||
|
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<% if @homework.homework_type == 2%>
|
||||||
|
<!-- 系统评分 -->
|
||||||
|
<li class="hworkList50 <%= score_color student_work.system_score%>">
|
||||||
|
<%= student_work.system_score.nil? ? "--" : format("%.1f",student_work.system_score)%>
|
||||||
|
</li>
|
||||||
|
<% end%>
|
||||||
|
|
||||||
|
<% if @homework.anonymous_comment == 0%>
|
||||||
|
<li class="hworkList50 <%= score_color student_work.student_score%> student_score_info">
|
||||||
|
<% if student_work.student_score.nil? %>
|
||||||
|
<span title="该作品未被匿评">未参与</span>
|
||||||
|
<% else %>
|
||||||
|
<%=format("%.1f",student_work.student_score) %>
|
||||||
|
<% end %>
|
||||||
|
<% unless student_work.student_score.nil?%>
|
||||||
|
<span class="linkBlue">
|
||||||
|
(<%= student_work.student_works_scores.where(:reviewer_role => 3).group_by(&:user_id).count%>)
|
||||||
|
</span>
|
||||||
|
<div class="infoNi none">
|
||||||
|
现共有
|
||||||
|
<span class="c_red"> <%= student_work.student_works_scores.where(:reviewer_role => 3).group_by(&:user_id).count%> </span>
|
||||||
|
名学生进行了匿评,平均分为
|
||||||
|
<span class="c_red"> <%= format("%.1f",student_work.student_score)%> </span>分。
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<!-- 成绩 -->
|
||||||
|
<% if student_work.homework_common && student_work.homework_common.teacher_priority == 1 && student_work.teacher_score %>
|
||||||
|
<% score = student_work.respond_to?("score") ? student_work.score : student_work.teacher_score %>
|
||||||
|
<% else %>
|
||||||
|
<% score = student_work.respond_to?("score") ? student_work.score : (student_work.final_score || 0) - student_work.absence_penalty - student_work.late_penalty%>
|
||||||
|
<% end %>
|
||||||
|
<li class="hworkList50 <%= score_color score%> student_final_scor_info">
|
||||||
|
<%= score.nil? ? "--" : format("%.1f",score<0 ? 0 : score)%>
|
||||||
|
<% unless score.nil?%>
|
||||||
|
<div class="infoNi none width180">
|
||||||
|
作品最终评分为
|
||||||
|
<span class="c_red"> <%= student_work.final_score%> </span>分。
|
||||||
|
迟交扣分
|
||||||
|
<span class="c_red">
|
||||||
|
<%= student_work.homework_common && student_work.homework_common.teacher_priority == 1 && student_work.teacher_score ? 0 : student_work.late_penalty %>
|
||||||
|
</span>分,
|
||||||
|
缺评扣分
|
||||||
|
<span class="c_red">
|
||||||
|
<%= student_work.homework_common && student_work.homework_common.teacher_priority == 1 && student_work.teacher_score ? 0 : student_work.absence_penalty%>
|
||||||
|
</span>分,
|
||||||
|
最终成绩为
|
||||||
|
<span class="c_red"> <%= format("%.1f",score<0 ? 0 : score)%> </span>分。
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
|
<li class="hworkTip" style="display: none" id="work_click_<%= student_work.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></li>
|
||||||
|
</ul>
|
@ -0,0 +1,84 @@
|
|||||||
|
<ul class="hworkListRow" id="student_work_<%= student_work.id%>">
|
||||||
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<% is_my_work = student_work.user == User.current%>
|
||||||
|
<% else %>
|
||||||
|
<% pro = @homework.student_work_projects.where(:user_id => User.current.id).first %>
|
||||||
|
<% is_my_work = pro && pro.student_work_id == student_work.id%>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if is_my_work%>
|
||||||
|
<li class="hworkList30 ml5 mr5" id="work_num_<%=student_work.id %>"><%=index + 1 %></li>
|
||||||
|
<li class="hworkPortrait mt15 mr10">
|
||||||
|
<%= image_tag(url_to_avatar(student_work.user),width:"40", height: "40", style: "display:block;") %>
|
||||||
|
</li>
|
||||||
|
<li class="hworkName mt12 pr10 w250 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>
|
||||||
|
</li>
|
||||||
|
<div class="student_work_<%= student_work.id%>">
|
||||||
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<li class="hworkStName w80" title="<%= student_work.user.show_name%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
||||||
|
<%= student_work.user.show_name%>
|
||||||
|
</li>
|
||||||
|
<li class="hworkStID" 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;">
|
||||||
|
<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
||||||
|
</li>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<% 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 %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% else%>
|
||||||
|
<li class="hworkList30 ml5 mr5" id="work_num_<%=student_work.id %>"><%=index + 1 %></li>
|
||||||
|
<li class="hworkPortrait mt15 mr10">
|
||||||
|
<%= image_tag(url_to_avatar(""),width:"40", height: "40", style: "display:block;") %>
|
||||||
|
</li>
|
||||||
|
<li class="hworkName mt12 pr10 w250 student_work_<%= student_work.id%>">
|
||||||
|
<div>
|
||||||
|
<%= link_to "匿名的作品", student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word w250"%>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<% if @homework.homework_type != 3 %>
|
||||||
|
<li class="hworkStName w80" title="姓名" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
||||||
|
匿名
|
||||||
|
</li>
|
||||||
|
<li class="hworkStID" title="学号">
|
||||||
|
--
|
||||||
|
</li>
|
||||||
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
||||||
|
<li class="hworkPrName mr10" title="项目名称" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
||||||
|
匿名
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end%>
|
||||||
|
|
||||||
|
<li class="hworkList130 pl10 c_grey student_work_<%= student_work.id%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
||||||
|
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
|
||||||
|
<% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(format_time(student_work.created_at)).strftime("%Y-%m-%d") %>
|
||||||
|
<span class="c_red">[迟交]</span>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- 成绩 -->
|
||||||
|
<% if @homework.homework_type == 2%>
|
||||||
|
<!-- 系统评分 -->
|
||||||
|
<li class="hworkList50 <%= score_color student_work.system_score%>">
|
||||||
|
<%= student_work.system_score.nil? ? "--" : format("%.1f",student_work.system_score)%>
|
||||||
|
</li>
|
||||||
|
<% end%>
|
||||||
|
|
||||||
|
<% my_score = student_work_score(student_work,User.current) %>
|
||||||
|
<li class="hworkList50 <%= my_score.nil? ? 'c_grey' : score_color(my_score.score)%> mr10 ml10">
|
||||||
|
<%= my_score.nil? ? "--" : format("%.1f",my_score.score)%>
|
||||||
|
</li>
|
||||||
|
<li class="hworkTip" style="display: none" id="work_click_<%= student_work.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></li>
|
||||||
|
</ul>
|
@ -1,6 +1,6 @@
|
|||||||
//location.reload();
|
//location.reload();
|
||||||
<% if params[:detail_page] %>
|
<% if params[:detail_page] %>
|
||||||
window.location.href = '<%= org_subfield_sub_domain_sub_document_comments_path(:org_subfield_id => @org_subfield.id, :sub_domain_id => @subdomain.id)%>';
|
window.location.href = '<%= org_subfield_sub_domain_sub_document_comments_path(:org_subfield_id => @org_subfield.id, :sub_domain_id => @sub_domain.id)%>';
|
||||||
<% else %>
|
<% else %>
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
<% end %>
|
<% end %>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue