<%=@syllabus.description.html_safe %>
<%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @syllabus} %>
diff --git a/app/views/users/_course_attachment.html.erb b/app/views/users/_course_attachment.html.erb
index 4b854f44b..6e92d224a 100644
--- a/app/views/users/_course_attachment.html.erb
+++ b/app/views/users/_course_attachment.html.erb
@@ -12,7 +12,9 @@
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
<% end %>
TO
- <%= link_to activity.course.name.to_s+" | 班级资源", course_files_path(activity.course), :class => "newsBlue ml15" %>
+ <%=link_to activity.course.syllabus.title, syllabus_path(activity.course.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
+ •
+ <%= link_to activity.course.name.to_s+" | 班级资源", course_files_path(activity.course), :class => "newsBlue" %>
<%= link_to activity.filename, course_files_path(activity.course), :class => "postGrey" %>
diff --git a/app/views/users/_course_create.html.erb b/app/views/users/_course_create.html.erb
index 2bce467be..7cddd09a7 100644
--- a/app/views/users/_course_create.html.erb
+++ b/app/views/users/_course_create.html.erb
@@ -12,7 +12,9 @@
<%= link_to activity.try(:teacher).try(:realname), user_path(activity.tea_id), :class => "newsBlue mr15" %>
<% end %>
TO
- <%= link_to activity.name.to_s+" | 班级", course_path(activity.id,:host=>Setting.host_course), :class => "newsBlue ml15" %>
+ <%=link_to activity.syllabus.title, syllabus_path(activity.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
+ •
+ <%= link_to activity.name.to_s+" | 班级", course_path(activity.id,:host=>Setting.host_course), :class => "newsBlue" %>
<%= link_to activity.name, course_path(activity.id,:host=>Setting.host_course), :class => "postGrey" %>
diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb
index 20ee54afd..cf5f5881b 100644
--- a/app/views/users/_course_homework.html.erb
+++ b/app/views/users/_course_homework.html.erb
@@ -9,39 +9,15 @@
<%= link_to activity.user.show_name, user_path(activity.user_id,:host=>Setting.host_user), :class => "newsBlue mr15" %>
TO
- <%= link_to activity.course.name.to_s+" | 班级作业", homework_common_index_path(:course => activity.course.id, :host=> Setting.host_course), :class => "newsBlue ml15"%>
+ <%=link_to activity.course.syllabus.title, syllabus_path(activity.course.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
+ •
+ <%= link_to activity.course.name.to_s+" | 班级作业", homework_common_index_path(:course => activity.course.id, :host=> Setting.host_course), :class => "newsBlue"%>
<%= link_to activity.name.to_s, student_work_index_path(:homework => activity.id,:host=> Setting.host_course), :class => "postGrey"%>
- <% if activity.homework_detail_manual%>
- <% if activity.homework_detail_manual.comment_status == 1%>
- <% if activity.anonymous_comment == 0%>
-
未开启匿评
- <% else %>
-
匿评已禁用
- <% end %>
- <% if Time.parse(activity.end_time.to_s).strftime("%Y-%m-%d") >= Time.now.strftime("%Y-%m-%d")%>
-
作品提交中
- <% elsif Time.parse(activity.end_time.to_s).strftime("%Y-%m-%d") < Time.now.strftime("%Y-%m-%d") %>
-
作品补交中
- <% end %>
- <% elsif activity.homework_detail_manual.comment_status == 2%>
- <% if activity.anonymous_comment == 0%>
-
匿评中
- <% else %>
-
匿评已禁用
- <% end %>
-
教师评阅中
- <% elsif activity.homework_detail_manual.comment_status == 3%>
- <% if activity.anonymous_comment == 0%>
-
匿评已结束
- <% else %>
-
匿评已禁用
- <% end %>
-
教师评阅中
- <% end%>
- <% end%>
+
+ <%=get_hw_status(activity).html_safe %>
<% if activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 1%>
diff --git a/app/views/users/_course_journalsformessage.html.erb b/app/views/users/_course_journalsformessage.html.erb
index 3225a1a8b..ae5b50619 100644
--- a/app/views/users/_course_journalsformessage.html.erb
+++ b/app/views/users/_course_journalsformessage.html.erb
@@ -9,7 +9,9 @@
<%= link_to activity.user.show_name, user_path(activity.user_id), :class => "newsBlue mr15" %>
TO
<% course=Course.find(activity.jour_id) %>
- <%= link_to course.name.to_s+" | 班级留言", course_feedback_path(course), :class => "newsBlue ml15" %>
+ <%=link_to course.syllabus.title, syllabus_path(course.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
+
•
+ <%= link_to course.name.to_s+" | 班级留言", course_feedback_path(course), :class => "newsBlue" %>
diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb
index f46282ff8..b3bd6438a 100644
--- a/app/views/users/_course_news.html.erb
+++ b/app/views/users/_course_news.html.erb
@@ -8,7 +8,9 @@
<%= link_to activity.author.show_name, user_path(activity.author_id), :class => "newsBlue mr15" %>
TO
- <%= link_to activity.course.name.to_s+" | 班级通知", course_news_index_path(activity.course), :class => "newsBlue ml15" %>
+ <%=link_to activity.course.syllabus.title, syllabus_path(activity.course.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
+ •
+ <%= link_to activity.course.name.to_s+" | 班级通知", course_news_index_path(activity.course), :class => "newsBlue" %>
<%= link_to activity.title.to_s, news_path(activity), :class => "postGrey" %>
diff --git a/app/views/users/_course_poll.html.erb b/app/views/users/_course_poll.html.erb
index 4fbb55321..ca8b49cd3 100644
--- a/app/views/users/_course_poll.html.erb
+++ b/app/views/users/_course_poll.html.erb
@@ -16,7 +16,10 @@
<%= link_to activity.try(:user).try(:realname), user_path(activity.user_id), :class => "newsBlue mr15" %>
<% end %>
TO
- <%= link_to Course.find(activity.polls_group_id).name.to_s+" | 问卷", poll_index_path(:polls_type => "Course", :polls_group_id => activity.polls_group_id), :class => "newsBlue ml15" %>
+ <% course = Course.find(activity.polls_group_id) %>
+ <%=link_to course.syllabus.title, syllabus_path(course.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
+ •
+ <%= link_to course.name.to_s+" | 问卷", poll_index_path(:polls_type => "Course", :polls_group_id => activity.polls_group_id), :class => "newsBlue" %>
diff --git a/app/views/users/_homework_repository_list.html.erb b/app/views/users/_homework_repository_list.html.erb
index ed7876f2d..5b0053a50 100644
--- a/app/views/users/_homework_repository_list.html.erb
+++ b/app/views/users/_homework_repository_list.html.erb
@@ -15,11 +15,13 @@
-
-
+
来源:
- <%=link_to homework.course.name.to_s + "(#{current_time_and_term_short(homework.course)})", course_path(homework.course), :class => 'hw_cgrey hw_list_classname fl mr15', :target => '_blank' %>
-
+
+ <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey', :target => '_blank' %>
+ •
+ <%=link_to homework.course.name.to_s + "(#{current_time_and_term_short(homework.course)})", course_path(homework.course), :class => 'hw_cgrey', :target => '_blank' %>
+
<% if type == "2" %>
贡献者:
@@ -42,7 +44,7 @@
<% else %>
发布时间:<%= format_date(homework.publish_time) %>
<% end %>
-
+
<% student_ids = homework.course.student.empty? ? [] : homework.course.student.map{|student| student.student_id}.join(',') %>
diff --git a/app/views/users/_manage_homework_list.html.erb b/app/views/users/_manage_homework_list.html.erb
index e8912c4c9..d9246f5ed 100644
--- a/app/views/users/_manage_homework_list.html.erb
+++ b/app/views/users/_manage_homework_list.html.erb
@@ -13,7 +13,11 @@
来源:
- <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey hw_classname fl mr15' %>
+
+ <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey', :target => '_blank' %>
+ •
+ <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey' %>
+
类别:<%=homework.homework_type_ch %>
作品:
<%=homework.student_works.has_committed.count %>
diff --git a/app/views/users/_receive_homework_list.html.erb b/app/views/users/_receive_homework_list.html.erb
index f992c2af8..c0132b04b 100644
--- a/app/views/users/_receive_homework_list.html.erb
+++ b/app/views/users/_receive_homework_list.html.erb
@@ -13,7 +13,11 @@
来源:
- <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey hw_classname fl mr15' %>
+
+ <%=link_to homework.course.syllabus.title, syllabus_path(homework.course.syllabus_id), :class => 'hw_cgrey', :target => '_blank' %>
+ •
+ <%= link_to homework.course.name, course_path(homework.course), :target => '_blank', :class => 'hw_cgrey' %>
+
类别:<%=homework.homework_type_ch %>
<% my_work = cur_user_works_for_homework(homework) %>
状态: <%= my_work ? '已提交' : '未提交' %>
diff --git a/app/views/users/_resources_list.html.erb b/app/views/users/_resources_list.html.erb
index 77a2386fe..d7f0dee7f 100644
--- a/app/views/users/_resources_list.html.erb
+++ b/app/views/users/_resources_list.html.erb
@@ -13,13 +13,13 @@
<%= link_to truncate(attach.filename, :length => 30), download_named_attachment_path(attach.id, attach.filename), :title => attach.filename, :class => 'resourcesBlack resource-list-middle hidden mw280' %>
<%= format_date(attach.created_on) %>
-
<%= attach.quotes.nil? ? 0 : attach.quotes %>
+
<%= attach.downloads %>
<%= attach.author_id %>
<%= (number_to_human_size(attach.filesize)).gsub("ytes", "") %>
<%= User.find(attach.author_id).realname.blank? ? User.find(attach.author_id).nickname : User.find(attach.author_id).realname %>
<%= get_resource_type(attach.container_type)%>
-
<%= get_resource_origin(attach) %>
+
<%= get_resource_origin(attach).html_safe %>
<%= attach.id %>
diff --git a/app/views/users/_syllabus_course_list.html.erb b/app/views/users/_syllabus_course_list.html.erb
index 993192978..0759cb5b6 100644
--- a/app/views/users/_syllabus_course_list.html.erb
+++ b/app/views/users/_syllabus_course_list.html.erb
@@ -19,10 +19,10 @@
<% syllabuses.each_with_index do |syllabus, index|%>
<% course_count = syllabus.courses.not_deleted.count %>
-
+
-
-
<%=syllabus.title %>
+
+ <%=link_to syllabus.title, syllabus_path(syllabus.id), :class => 'syllabus_courses_title fl', :target => '_blank' %>
更新时间:<%=format_date syllabus.updated_at %>
创建老师:<%=syllabus.user.show_name %>
diff --git a/app/views/users/_user_at_message.html.erb b/app/views/users/_user_at_message.html.erb
index 81139ab8e..7bcbe8aa8 100644
--- a/app/views/users/_user_at_message.html.erb
+++ b/app/views/users/_user_at_message.html.erb
@@ -1,4 +1,4 @@
-<% if ma.class == AtMessage && ma.at_valid? %>
+<% if ma.class == AtMessage && ma.at_valid? && ma.at_message %>
<%=link_to image_tag(url_to_avatar(ma.author), :width => "30", :height => "30"),user_path(ma.author) %>
diff --git a/app/views/users/_user_homework_detail.html.erb b/app/views/users/_user_homework_detail.html.erb
index 8c606add6..6f1fb7843 100644
--- a/app/views/users/_user_homework_detail.html.erb
+++ b/app/views/users/_user_homework_detail.html.erb
@@ -8,7 +8,9 @@
<%= link_to homework_common.user.show_name, user_activities_path(homework_common.user_id), :class => "newsBlue mr15"%>
TO
- <%= link_to homework_common.course.name, course_path(homework_common.course_id), :class => "newsBlue ml15"%>
+ <%=link_to homework_common.course.syllabus.title, syllabus_path(homework_common.course.syllabus_id), :class => 'newsBlue ml15', :target => '_blank' %>
+ •
+ <%= link_to homework_common.course.name, course_path(homework_common.course_id), :class => "newsBlue"%>
<% if is_in_course == 1%>
@@ -19,38 +21,8 @@
<% end %>
- <% if homework_common.homework_detail_manual%>
- <% if homework_common.homework_detail_manual.comment_status == 0 && homework_common.publish_time.nil? %>
- 挂起
- <% elsif homework_common.homework_detail_manual.comment_status == 0 %>
- 未发布
- <% elsif homework_common.homework_detail_manual.comment_status == 1%>
- <% if homework_common.anonymous_comment == 0%>
- 未开启匿评
- <% else %>
- 匿评已禁用
- <% end %>
- <% if Time.parse(homework_common.end_time.to_s).strftime("%Y-%m-%d") >= Time.now.strftime("%Y-%m-%d")%>
- 作品提交中
- <% elsif Time.parse(homework_common.end_time.to_s).strftime("%Y-%m-%d") < Time.now.strftime("%Y-%m-%d") %>
- 作品补交中
- <% end %>
- <% elsif homework_common.homework_detail_manual.comment_status == 2%>
- <% if homework_common.anonymous_comment == 0%>
- 匿评中
- <% else %>
- 匿评已禁用
- <% end %>
- 教师评阅中
- <% elsif homework_common.homework_detail_manual.comment_status == 3%>
- <% if homework_common.anonymous_comment == 0%>
- 匿评已结束
- <% else %>
- 匿评已禁用
- <% end %>
- 教师评阅中
- <% end%>
- <% end%>
+ <%=get_hw_status(homework_common).html_safe %>
+
<% if homework_common.homework_type == 3 && homework_common.homework_detail_group.base_on_project == 1%>
系统提示:该作业要求各组长<%=link_to "创建项目", new_project_path(:host=>Setting.host_name),:class=>"linkBlue",:title=>"新建项目",:style=>"text-decoration:underline;"%>,组成员加入项目,然后由组长关联项目。谢谢配合!
diff --git a/app/views/users/_user_homework_form.html.erb b/app/views/users/_user_homework_form.html.erb
index 99b9812cc..b3f9970c6 100644
--- a/app/views/users/_user_homework_form.html.erb
+++ b/app/views/users/_user_homework_form.html.erb
@@ -164,21 +164,22 @@
<% unless edit_mode %>
<% end %>
- <% if edit_mode %>
+ <%# if edit_mode %>
截止日期:
- <% end %>
+ <%# end %>
-
+
<% if homework.homework_detail_manual.comment_status.to_i < 2 %>
<%= calendar_for('homework_end_time')%>
<% end %>
- <% if edit_mode %>
+ <%# if edit_mode %>
发布日期(可选):
- <% end %>
+ <%# end %>
-
- <% if homework.homework_detail_manual.comment_status.to_i == 0 %>
+ <% allow_edit = homework.student_works.has_committed.count == 0 && homework.student_work_projects.count ==0 %>
+
+ <% if allow_edit %>
<%= calendar_for('homework_publish_time')%>
<% end %>
diff --git a/app/views/users/_user_resource_tip_list.html.erb b/app/views/users/_user_resource_tip_list.html.erb
index 35ca130dd..94e52a04a 100644
--- a/app/views/users/_user_resource_tip_list.html.erb
+++ b/app/views/users/_user_resource_tip_list.html.erb
@@ -8,12 +8,12 @@
<%= link_to "", user_resource_user_path(:type => @type, :status => @status, :sort => @score, :order => "created_on", :search => " "), :class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt16", :remote => true %>
<% end %>
-
- <%= link_to "引用数", resource_search_user_path(:type => @type, :status => @status, :sort => @score, :order => "quotes"), :class => "fl", :remote => true %>
- <% if @order == "quotes" %>
- <%= link_to "", user_resource_user_path(:type => @type, :status => @status, :sort => @score, :order => "quotes"), :class => "#{@score == 'desc' ? 'st_up' : 'st_down'} mt16", :remote => true %>
- <% end %>
-
+
+
+
+
+
+
<%= link_to "下载数", resource_search_user_path(:type => @type, :status => @status, :sort => @score, :order => "downloads"), :class => "fl", :remote => true %>
<% if @order == "downloads" %>
diff --git a/app/views/users/manage_or_receive_homeworks.html.erb b/app/views/users/manage_or_receive_homeworks.html.erb
index c16a33c02..45d3a022d 100644
--- a/app/views/users/manage_or_receive_homeworks.html.erb
+++ b/app/views/users/manage_or_receive_homeworks.html.erb
@@ -3,7 +3,7 @@
window.location.href = url;
}
-
+
我的作业
diff --git a/app/views/users/my_homeworks.html.erb b/app/views/users/my_homeworks.html.erb
index ccf06adfd..f7d031d95 100644
--- a/app/views/users/my_homeworks.html.erb
+++ b/app/views/users/my_homeworks.html.erb
@@ -9,7 +9,7 @@
window.location.href = url;
}
-
+
我的作业
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 5ae593ddf..e920af7bf 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -34,10 +34,8 @@
更多
<%= link_to "个人留言", {:controller => "users", :action => "show", :type => "user_journals"}, :class =>"homepagePostTypeMessage postTypeGrey"%>
- <% if @user == User.current %>
- <%= link_to "我的动态", {:controller => "users", :action => "show", :type => "current_user"}, :class =>"homepagePostTypeMine postTypeGrey"%>
- <% end %>
- <%= link_to "全部动态", {:controller => "users", :action => "show", :type => nil}, :class =>"homepagePostTypeAll postTypeGrey"%>
+ <%= link_to @user == User.current ? "我的动态" : "他的动态", {:controller => "users", :action => "show", :type => "current_user"}, :class =>"homepagePostTypeMine postTypeGrey"%>
+ <%= link_to "全部动态", {:controller => "users", :action => "show", :type => "all"}, :class =>"homepagePostTypeAll postTypeGrey"%>
diff --git a/db/migrate/20160907055119_add_index_to_student_work_tests.rb b/db/migrate/20160907055119_add_index_to_student_work_tests.rb
new file mode 100644
index 000000000..75d36ce8d
--- /dev/null
+++ b/db/migrate/20160907055119_add_index_to_student_work_tests.rb
@@ -0,0 +1,5 @@
+class AddIndexToStudentWorkTests < ActiveRecord::Migration
+ def change
+ add_index :student_work_tests, :student_work_id
+ end
+end
diff --git a/db/migrate/20160907061917_add_index_to_course_contributor_scores.rb b/db/migrate/20160907061917_add_index_to_course_contributor_scores.rb
new file mode 100644
index 000000000..5deb98469
--- /dev/null
+++ b/db/migrate/20160907061917_add_index_to_course_contributor_scores.rb
@@ -0,0 +1,7 @@
+class AddIndexToCourseContributorScores < ActiveRecord::Migration
+ def change
+ add_index :course_contributor_scores, [:course_id, :user_id]
+ add_index :members, :course_id
+ add_index :course_groups, :course_id
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index ae19dba08..4b188ecbb 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 => 20160907080621) do
+ActiveRecord::Schema.define(:version => 20160907061917) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
@@ -56,10 +56,10 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
t.integer "user_id"
t.integer "applied_id"
t.string "applied_type"
- t.integer "viewed"
- t.integer "status"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.integer "viewed", :default => 0
+ t.integer "status", :default => 0
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
t.string "name"
t.integer "applied_user_id"
t.integer "role"
@@ -157,13 +157,13 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
create_table "attachments", :force => true do |t|
t.integer "container_id"
t.string "container_type", :limit => 30
- t.string "filename", :default => "", :null => false
- t.string "disk_filename", :default => "", :null => false
- t.integer "filesize", :default => 0, :null => false
+ t.string "filename", :default => "", :null => false
+ t.string "disk_filename", :default => "", :null => false
+ t.integer "filesize", :default => 0, :null => false
t.string "content_type", :default => ""
- t.string "digest", :limit => 40, :default => "", :null => false
- t.integer "downloads", :default => 0, :null => false
- t.integer "author_id", :default => 0, :null => false
+ t.string "digest", :limit => 40, :default => "", :null => false
+ t.integer "downloads", :default => 0, :null => false
+ t.integer "author_id", :default => 0, :null => false
t.datetime "created_on"
t.string "description"
t.string "disk_directory"
@@ -173,7 +173,6 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
t.integer "quotes"
t.integer "is_publish", :default => 1
t.date "publish_time"
- t.boolean "init_file", :default => false
end
add_index "attachments", ["author_id"], :name => "index_attachments_on_author_id"
@@ -311,16 +310,14 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
add_index "changeset_parents", ["parent_id"], :name => "changeset_parents_parent_ids"
create_table "changesets", :force => true do |t|
- t.integer "repository_id", :null => false
- t.string "revision", :null => false
+ t.integer "repository_id", :null => false
+ t.string "revision", :null => false
t.string "committer"
- t.datetime "committed_on", :null => false
+ t.datetime "committed_on", :null => false
t.text "comments"
t.date "commit_date"
t.string "scmid"
t.integer "user_id"
- t.integer "project_id"
- t.integer "type", :default => 0
end
add_index "changesets", ["committed_on"], :name => "index_changesets_on_committed_on"
@@ -520,6 +517,8 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
t.integer "news_num", :default => 0
end
+ add_index "course_contributor_scores", ["course_id", "user_id"], :name => "index_course_contributor_scores_on_course_id_and_user_id"
+
create_table "course_groups", :force => true do |t|
t.string "name"
t.integer "course_id"
@@ -527,6 +526,8 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
t.datetime "updated_at", :null => false
end
+ add_index "course_groups", ["course_id"], :name => "index_course_groups_on_course_id"
+
create_table "course_infos", :force => true do |t|
t.integer "course_id"
t.integer "user_id"
@@ -1143,6 +1144,7 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
t.integer "is_collect", :default => 1
end
+ add_index "members", ["course_id"], :name => "index_members_on_course_id"
add_index "members", ["project_id"], :name => "index_members_on_project_id"
add_index "members", ["user_id", "project_id", "course_id"], :name => "index_members_on_user_id_and_project_id", :unique => true
add_index "members", ["user_id"], :name => "index_members_on_user_id"
@@ -1832,6 +1834,8 @@ ActiveRecord::Schema.define(:version => 20160907080621) do
t.text "src"
end
+ add_index "student_work_tests", ["student_work_id"], :name => "index_student_work_tests_on_student_work_id"
+
create_table "student_works", :force => true do |t|
t.string "name"
t.text "description", :limit => 2147483647
diff --git a/public/stylesheets/css/courses.css b/public/stylesheets/css/courses.css
index 7d0e6c866..77f7fdfe2 100644
--- a/public/stylesheets/css/courses.css
+++ b/public/stylesheets/css/courses.css
@@ -539,4 +539,12 @@ a:hover.blueCir{ background:#3598db; color:#fff;}
.hwork-table-wrap th {font-size:14px; color:#2d2d2d; border-bottom:1px solid #e1e1e1; text-align:center;}
/*20160901作品信息确认*/
-#worksDescription p {word-wrap:break-word;}
\ No newline at end of file
+#worksDescription p {word-wrap:break-word;}
+
+/*20160907作业详情更改*/
+.homework-type-option {border:1px solid #d9d9d9; width:98px; height:28px; color:#888; font-size:14px;}
+.homework-detail-tab {font-size:14px; color:#484848; overflow:hidden;}
+.homework-detail-tab li {float:left; width:100px; text-align:center; padding:3px 0; border-bottom:2px solid #ddd;}
+.homework-detail-tab li.selected {border-bottom:2px solid #f00;}
+.test-set-table, .test-set-table tr, .test-set-table th, .test-set-table td {border-collapse:collapse; text-align:left; border:1px solid #ddd; color:#484848;}
+.test-set-table th, .test-set-table td {padding:2px 5px;}
\ No newline at end of file
diff --git a/public/stylesheets/css/public.css b/public/stylesheets/css/public.css
index 9565a9e26..d4ba7b86c 100644
--- a/public/stylesheets/css/public.css
+++ b/public/stylesheets/css/public.css
@@ -321,7 +321,7 @@ a.loginChooseTab {color:#484848; height:30px; display:block;}
.resource-list-checkbox {width:20px; height:40px; line-height:40px; text-align:center; vertical-align:middle;}
.resource-checkbox {margin-top:14px; width:12px; height:12px;}
.resource-list-name {width:380px; height:40px; line-height:40px; text-align:left;}
-.resource-list-from {width:150px; height:40px; line-height:40px; text-align:center;}
+.resource-list-from {width:210px; height:40px; line-height:40px; text-align:center;}
.resource-list-size {width:80px; height:40px; line-height:40px; text-align:center;}
.resource-list-type {width:80px; height:40px; line-height:40px; text-align:center;}
.resource-list-uploader {width:80px; height:40px; line-height:40px; text-align:center;}
@@ -1454,4 +1454,8 @@ a:hover.sy_btn_green{ background: #51a74f;}
.resource_tip_box em {display:block; border-width:10px; position:absolute;top:35px; left:-20px; border-style:dashed solid dashed dashed; border-color:transparent #eaeaea transparent transparent; font-size:0; line-height:0;}
.resource_tip_box span {display:block; border-width:10px; position:absolute;top:35px; left:-18px; border-style:dashed solid dashed dashed; border-color:transparent #fff transparent transparent; font-size:0; line-height:0;}
+/*邀请码提示框*/
+.invite_code_tip_box {position:absolute; padding:5px 10px; white-space:nowrap; background-color:#fff; right:-185px; top:50px; box-shadow:0px 2px 8px rgba(146, 153, 169, 0.5);}
+.invite_code_tip_box em {display:block; border-width:10px; position:absolute;top:26px; left:-20px; border-style:dashed solid dashed dashed; border-color:transparent #eaeaea transparent transparent; font-size:0; line-height:0;}
+.invite_code_tip_box span {display:block; border-width:10px; position:absolute;top:26px; left:-18px; border-style:dashed solid dashed dashed; border-color:transparent #fff transparent transparent; font-size:0; line-height:0;}
diff --git a/public/stylesheets/css/structure.css b/public/stylesheets/css/structure.css
index 31464673e..8c55bd102 100644
--- a/public/stylesheets/css/structure.css
+++ b/public/stylesheets/css/structure.css
@@ -596,6 +596,9 @@ a.user_leftinfo_img { display:block; width:80px; height:80px; margin:15px auto;}
.user_sub_menu li a:hover,.user_sub_menu li a:target { color:#3b94d6; background:#fff url(/images/user/user_navmore_icons.png) 0px 0px no-repeat;}
.user_sub_menu li a:hover,.user_sub_menu li a:target{}
.user_sub_menu li:last-child a { }
+.user_sub_menu li p {padding:0 25px; border:1px solid #e5e5e5; border-bottom:none; background:#f8f8f8;}
+.user_sub_menu li p:hover {background:#fff;}
+.user_sub_menu li p:hover a {background:#fff;}
.users_accordion li > .user_sub_menu {
display: none;
}
@@ -634,6 +637,7 @@ a.user_navmorebox .user_icons_closeclass{
height:10px;
background:url(/images/user/icons_user_leftnav.png) -25px -347px no-repeat;
}
+.show-all-sub {position:absolute; top:18px; right:15px;}
/* 个人主页左侧导航更多功能 */
.user_navmore_box {position:absolute; width:15px; height:15px; right:13px; top:17px; cursor:pointer;}
.user_navmore_box ul li:hover ul {display:block; }
diff --git a/public/stylesheets/syllabus.css b/public/stylesheets/syllabus.css
index c92db8b76..9aac34eae 100644
--- a/public/stylesheets/syllabus.css
+++ b/public/stylesheets/syllabus.css
@@ -41,7 +41,7 @@ input.syllabus_input_min{
border: 1px solid #dddddd;
}
.sy_tab_con{
- width:740px; padding:20px 20px 0 20px; position:relative;
+ width:720px; padding:20px 28px 0 32px; position:relative;
}
.syllabuscon_title{
color:#000; text-align:center;
@@ -88,7 +88,7 @@ input.syllabus_input_min{
.syllabus_box{ width:750px; border:1px solid #e7e7e7; background-color:#fff;}
.syllabus_courses_list{ padding:15px; border-bottom:1px solid #e7e7e7; cursor:pointer;}
.syllabus_courses_list:hover{ background:#f6fafd;}
-.syllabus_courses_title{ font-size:16px; color:#333; width:650px; font-weight:normal;white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
+.syllabus_courses_title{ font-size:16px; color:#333 !important; width:650px; font-weight:normal;white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sy_p_grey{ margin-left:25px; color:#888; margin-top:5px; font-size:12px;}
.syllabus_class_box{ padding-left:43px; background:#f6f6f6;}
.syllabus_class_list{ padding:12px 0 12px 15px; height:44px;border-left:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7; position:relative;}
@@ -408,6 +408,10 @@ a:hover.sy_btn_orange{
color: #ee4a1f;
background: #fff;
}
+.sub-menu > li:hover > a{
+ color: #ee4a1f;
+ background: #fff;
+}
.accordion > li:target > a,
.accordion > li > a.active {
color: #ee4a1f;
@@ -563,7 +567,7 @@ a:hover.sy_btn_orange{
font-weight:normal;
}
.sy_sq_orange{ display: block;width: 15px; height: 15px; background:#f79981; color: #fff; text-align:center; line-height: 15px;}
-a.sy_class_ltitle{display: block; font-size: 14px; width: 185px; color:#888; }
+a.sy_class_ltitle{font-size: 14px; color:#888; }
a:hover.sy_class_ltitle{ color:#333;}
.sy_cir_grey{
font-size:11px;
@@ -602,6 +606,7 @@ a:hover.sy_class_ltitle{ color:#333;}
/*.hw_search_box a:hover.hw_btn_search{background:url(../images/hw/icons_hw.png) -40px -57px no-repeat;}*/
.hw_files_icon{display:block; width:17px; height:14px; background:url(../images/hw/icons_hw.png) 0 -135px no-repeat;}
.hw_list_classname{ width:300px; overflow:hidden; display:block;overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
+.syllabus_course_name{ width:450px; overflow:hidden; display:block;overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
.hw_list_teachername{ width:80px; overflow:hidden; display:block;overflow:hidden;white-space: nowrap; text-overflow:ellipsis;}
/* 测试集显示 */
.hw_popup_testtable{background:#fff; color:#888888; margin:10px 0; border-right:1px solid #e7e7e7; border-bottom:1px solid #e7e7e7;}