diff --git a/app/controllers/test_controller.rb b/app/controllers/test_controller.rb index ddb47a8b7..ec3e5cbdb 100644 --- a/app/controllers/test_controller.rb +++ b/app/controllers/test_controller.rb @@ -3,6 +3,8 @@ class TestController < ApplicationController helper :UserScore layout 'bootstrap_base' + def bootstrap; end + def zip homeworks_attach_path = [] homework_id = params[:homework_id] diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 10d599c31..58d31ce8b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1666,5 +1666,20 @@ module ApplicationHelper # end # end # end + + def footer_logo(ul_class=nil, li_class=nil) + logos = [] + logos.push(link_to image_tag('/images/footer_logo/nudt.png',:alt=>"nudt"),"http://www.nudt.edu.cn/special.asp?classid=12" ) + logos.push(link_to image_tag('/images/footer_logo/peking_eecs.png', :alt=>"peking_eecs"), "http://eecs.pku.edu.cn" ) + logos.push(link_to image_tag('/images/footer_logo/buaa_scse.png', :alt=>"buaa_scse"), "http://scse.buaa.edu.cn/" ) + logos.push(link_to image_tag('/images/footer_logo/iscas.png', :alt=>"iscas"), "http://www.iscas.ac.cn" ) + logos.push(link_to image_tag('/images/footer_logo/inforbus.png', :alt=>"inforbus"), "http://www.inforbus.com" ) + + logos.collect! { |logo| + content_tag(:li, logo.html_safe, :class => li_class.to_s) + } + + content_tag(:ul, logos.join("").html_safe, :class => ul_class.to_s).html_safe + end end diff --git a/app/views/layouts/_bootstrap_base_footer.html.erb b/app/views/layouts/_bootstrap_base_footer.html.erb new file mode 100644 index 000000000..2bda28bdd --- /dev/null +++ b/app/views/layouts/_bootstrap_base_footer.html.erb @@ -0,0 +1,20 @@ +
+ \ No newline at end of file diff --git a/app/views/layouts/_bootstrap_base_header.html.erb b/app/views/layouts/_bootstrap_base_header.html.erb index 2c55ff2cc..fc7897b27 100644 --- a/app/views/layouts/_bootstrap_base_header.html.erb +++ b/app/views/layouts/_bootstrap_base_header.html.erb @@ -33,12 +33,11 @@ @@ -64,10 +63,8 @@ -