+
+
\ No newline at end of file
diff --git a/app/views/homework_common/index.html.erb b/app/views/homework_common/index.html.erb
index db7dad9c7..4a804ae60 100644
--- a/app/views/homework_common/index.html.erb
+++ b/app/views/homework_common/index.html.erb
@@ -48,15 +48,55 @@
-
- <% unless homework.attachments.empty?%>
+ <% if homework.homework_type == 2 && homework.homework_detail_programing%>
+ <% if @is_teacher%>
+
+
+
">
+
+ 输入
+
+
+ 输出
+
+
+ <% homework.homework_tests.each do |test|%>
+
">
+
+ <%=test.input%>
+
+
+ <%= test.output%>
+
+
+ <% end%>
+
+
+
+ <% end%>
+
+
+ 开发语言:
+
+ <% if homework.homework_detail_programing.language.to_i == 1%>
+ C
+ <% elsif homework.homework_detail_programing.language.to_i == 2%>
+ C++
+ <% end%>
+
diff --git a/app/views/layouts/_base_footer_new.html.erb b/app/views/layouts/_base_footer_new.html.erb
new file mode 100644
index 000000000..b4856d2af
--- /dev/null
+++ b/app/views/layouts/_base_footer_new.html.erb
@@ -0,0 +1,13 @@
+
+
+
<%= @organizer.description.html_safe %>
+
+
+
+ <% @companies && @companies.each do |company| %>
+
+
+
+ <% end %>
+
+
\ No newline at end of file
diff --git a/app/views/layouts/_base_footer_public.html.erb b/app/views/layouts/_base_footer_public.html.erb
new file mode 100644
index 000000000..dba26f1f6
--- /dev/null
+++ b/app/views/layouts/_base_footer_public.html.erb
@@ -0,0 +1,46 @@
+
+
\ No newline at end of file
diff --git a/app/views/layouts/_base_header.html.erb b/app/views/layouts/_base_header.html.erb
index 16fa44c73..8dbacb523 100644
--- a/app/views/layouts/_base_header.html.erb
+++ b/app/views/layouts/_base_header.html.erb
@@ -18,7 +18,7 @@
<% if @show_course == 1 && !visiable %>
<% hasCourse=false %>
- <% User.current.courses.each do |course| %>
+ <% User.current.courses.select("courses.*,(SELECT MAX(created_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS a").order("a desc").each do |course| %>
<% if !course_endTime_timeout?(course) %>
<% hasCourse=true %>
<% break %>
@@ -34,9 +34,10 @@
+ <% User.current.courses.select("courses.*,(SELECT MAX(created_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS a").order("a desc").each do |course| %>
+ <% if !course_endTime_timeout?(course) %>
+
+ <% User.current.projects.select("projects.*,(SELECT MAX(created_at) FROM `forge_activities` WHERE forge_activities.project_id = projects.id) AS a").order("a desc").each do |project| %>
+
+
\ No newline at end of file
diff --git a/app/views/layouts/_new_header.html.erb b/app/views/layouts/_new_header.html.erb
index a756009f0..9252e23b9 100644
--- a/app/views/layouts/_new_header.html.erb
+++ b/app/views/layouts/_new_header.html.erb
@@ -26,7 +26,7 @@
- <% User.current.projects.reverse.each do |project| %>
+ <% User.current.projects.select("projects.*,(SELECT MAX(created_at) FROM `forge_activities` WHERE forge_activities.project_id = projects.id) AS a").order("a desc").each do |project| %>
+ <% for fans in fans_list %>
+ <%= link_to image_tag(url_to_avatar(fans), :style => "width:38px;height:38px;"), user_path(fans), :class => "pic_members", :title => "#{fans.name}" %>
+ <% end %>
+
+
+
+
\ No newline at end of file
diff --git a/app/views/layouts/_user_project_list.html.erb b/app/views/layouts/_user_project_list.html.erb
index 4df61b01b..924bfa9d4 100644
--- a/app/views/layouts/_user_project_list.html.erb
+++ b/app/views/layouts/_user_project_list.html.erb
@@ -2,7 +2,7 @@
- <% User.current.projects.reverse.each do |project| %>
+ <% User.current.projects.select("projects.*,(SELECT MAX(created_at) FROM `forge_activities` WHERE forge_activities.project_id = projects.id) AS a").order("a desc").each do |project| %>
+ <% for watcher in watcher_list %>
+ <%= link_to image_tag(url_to_avatar(watcher), :style => "width:38px;height:38px;"), user_path(watcher), :class => "pic_members", :title => "#{watcher.name}" %>
+ <% end %>
+
+
+
\ No newline at end of file
diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb
index 7a32cb67d..3242d79e9 100644
--- a/app/views/layouts/base_courses.html.erb
+++ b/app/views/layouts/base_courses.html.erb
@@ -113,7 +113,7 @@
\ No newline at end of file
diff --git a/app/views/poll/_show_head.html.erb b/app/views/poll/_show_head.html.erb
index 4a1b2256d..752a5b310 100644
--- a/app/views/poll/_show_head.html.erb
+++ b/app/views/poll/_show_head.html.erb
@@ -1,5 +1,8 @@
+
\ No newline at end of file
diff --git a/app/views/projects/search.html.erb b/app/views/projects/search.html.erb
index fedc9f846..c5edc4667 100644
--- a/app/views/projects/search.html.erb
+++ b/app/views/projects/search.html.erb
@@ -69,12 +69,12 @@
}
收起
+
\ No newline at end of file
diff --git a/app/views/student_work/_show.html.erb b/app/views/student_work/_show.html.erb
index 2b7d49402..f6580659e 100644
--- a/app/views/student_work/_show.html.erb
+++ b/app/views/student_work/_show.html.erb
@@ -36,7 +36,7 @@
内容:
- <%= text_format @work.description%>
+ <%= text_format(@work.description) if @work.description%>
\ No newline at end of file
diff --git a/app/views/users/_show_new_score.html.erb b/app/views/users/_show_new_score.html.erb
index c0e731a65..2081c38d6 100644
--- a/app/views/users/_show_new_score.html.erb
+++ b/app/views/users/_show_new_score.html.erb
@@ -4,7 +4,7 @@
+<% end%>
\ No newline at end of file
diff --git a/app/views/users/_user_jours_new.html.erb b/app/views/users/_user_jours_new.html.erb
new file mode 100644
index 000000000..0fe301641
--- /dev/null
+++ b/app/views/users/_user_jours_new.html.erb
@@ -0,0 +1,44 @@
+
\ No newline at end of file
diff --git a/app/views/users/_user_show.html.erb b/app/views/users/_user_show.html.erb
index 8e3d27666..7cbb20e40 100644
--- a/app/views/users/_user_show.html.erb
+++ b/app/views/users/_user_show.html.erb
@@ -23,8 +23,19 @@
\ No newline at end of file
diff --git a/app/views/users/user_courses4show.html.erb b/app/views/users/user_courses4show.html.erb
new file mode 100644
index 000000000..7aab1b2a5
--- /dev/null
+++ b/app/views/users/user_courses4show.html.erb
@@ -0,0 +1,16 @@
+<% for item in @list %>
+
+
+
+
\ No newline at end of file
diff --git a/app/views/users/user_projects4show.html.erb b/app/views/users/user_projects4show.html.erb
new file mode 100644
index 000000000..3c709bd5d
--- /dev/null
+++ b/app/views/users/user_projects4show.html.erb
@@ -0,0 +1,16 @@
+<% for item in @list %>
+