diff --git a/app/views/homework_attach/_homeworks_list.html.erb b/app/views/homework_attach/_homeworks_list.html.erb
index 24ea2190c..689eaa08b 100644
--- a/app/views/homework_attach/_homeworks_list.html.erb
+++ b/app/views/homework_attach/_homeworks_list.html.erb
@@ -34,7 +34,11 @@
<% end %>
+
+
+ 返
回
顶
部
+
<% unless homeworks.nil? %>
diff --git a/db/schema.rb b/db/schema.rb
index dcbe017fb..8b5ea1461 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20150428021035) do
+ActiveRecord::Schema.define(:version => 20150505025537) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
@@ -541,6 +541,8 @@ ActiveRecord::Schema.define(:version => 20150428021035) do
t.integer "is_teacher_score", :default => 0
end
+ add_index "homework_attaches", ["bid_id"], :name => "index_homework_attaches_on_bid_id"
+
create_table "homework_evaluations", :force => true do |t|
t.string "user_id"
t.string "homework_attach_id"
@@ -553,6 +555,9 @@ ActiveRecord::Schema.define(:version => 20150428021035) do
t.integer "bid_id"
end
+ add_index "homework_for_courses", ["bid_id"], :name => "index_homework_for_courses_on_bid_id"
+ add_index "homework_for_courses", ["course_id"], :name => "index_homework_for_courses_on_course_id"
+
create_table "homework_users", :force => true do |t|
t.string "homework_attach_id"
t.string "user_id"
@@ -1159,6 +1164,9 @@ ActiveRecord::Schema.define(:version => 20150428021035) do
t.datetime "updated_at", :null => false
end
+ add_index "students_for_courses", ["course_id"], :name => "index_students_for_courses_on_course_id"
+ add_index "students_for_courses", ["student_id"], :name => "index_students_for_courses_on_student_id"
+
create_table "taggings", :force => true do |t|
t.integer "tag_id"
t.integer "taggable_id"
diff --git a/public/images/course/to_top.png b/public/images/course/to_top.png
new file mode 100644
index 000000000..1621b3510
Binary files /dev/null and b/public/images/course/to_top.png differ
diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css
index fa5465dba..043faca46 100644
--- a/public/stylesheets/css.css
+++ b/public/stylesheets/css.css
@@ -175,6 +175,7 @@ a.member_search {width: 43px;height: 22px;background: #15bccf;color: #fff;text-a
/*上传图片处理*/
.upload_img img{max-width: 100%;}
+.to_top{width: 19px;height: 74px;position: fixed;top: 50px;right: 1px;color: white;background: #15bccf; line-height: 1.2; padding-top: 10px;padding-left: 5px;font-size: 14px;cursor: pointer}