diff --git a/app/views/homework_common/index.html.erb b/app/views/homework_common/index.html.erb
index 4a804ae60..44e1b43b6 100644
--- a/app/views/homework_common/index.html.erb
+++ b/app/views/homework_common/index.html.erb
@@ -9,7 +9,7 @@
<%= @obj_count%>
<%= l(:label_homework_count)%>
- <%= link_to( l(:label_course_homework_new), new_homework_common_path(:course => @course.id), :class => 'problem_new_btn fl c_dorange') if @is_teacher %>
+ <%#= link_to( l(:label_course_homework_new), new_homework_common_path(:course => @course.id), :class => 'problem_new_btn fl c_dorange') if @is_teacher %>
<% @homeworks.each do |homework|%>
@@ -27,7 +27,8 @@
<% if @is_teacher%>
<%= homework_anonymous_comment(homework)%>
<%= link_to(l(:label_bid_respond_delete), homework_common_path(homework),:method => 'delete', :confirm => l(:text_are_you_sure), :class => "fr mr10 work_edit") %>
- <%= link_to(l(:button_edit),edit_homework_common_path(homework), :class => "fr mr10 work_edit") %>
+ <%#= link_to(l(:button_edit),edit_homework_common_path(homework), :class => "fr mr10 work_edit") %>
+ <%= link_to(l(:button_edit),"javascript:void(0)", :class => "fr mr10 un_work_edit",:title => "编辑功能正在维护中") %>
<% elsif @is_student%>
<%= student_anonymous_comment homework %>
<%= student_new_homework homework %>
diff --git a/app/views/homework_common/new.html.erb b/app/views/homework_common/new.html.erb
index f5fb595e1..6fc0fff0e 100644
--- a/app/views/homework_common/new.html.erb
+++ b/app/views/homework_common/new.html.erb
@@ -1,16 +1,17 @@
-<% content_for :header_tags do %>
- <%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg' %>
- <%= javascript_include_tag 'homework','baiduTemplate' %>
-<% end %>
-
+<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
<%= error_messages_for 'homework_common' %>
-
+
+
+ <%= l(:label_course_homework_new)%>
+
+
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
<%= hidden_field_tag "course",@course.id%>
- <%= render :partial => 'homework_common/new_homework_detail_manual_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
+ <%= render :partial => 'homework_common/homework_detail_manual_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
+
提交
+ <%#= link_to "上一步", new_homework_common_path(:course => @course.id), :class => "orange_btn_homework fl"%>
+ <%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
<% end%>
-
-
diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb
index adec9e6fd..c2f159f28 100644
--- a/app/views/layouts/base_courses.html.erb
+++ b/app/views/layouts/base_courses.html.erb
@@ -123,7 +123,7 @@
<%= link_to l(:label_homework), homework_common_index_path(:course => @course.id), :class => "f14 c_blue02"%>
<%= link_to "(#{@course.homework_commons.count})", homework_common_index_path(:course => @course.id), :class => "subnav_num c_orange"%>
- <%= link_to( "+#{l(:label_course_homework_new)}", new_homework_common_path(:course => @course.id), :class => 'subnav_green c_white') if is_teacher %>
+ <%#= link_to( "+#{l(:label_course_homework_new)}", new_homework_common_path(:course => @course.id), :class => 'subnav_green c_white') if is_teacher %>
<%= link_to l(:label_course_news), course_news_index_path(@course), :class => "f14 c_blue02" %>
diff --git a/app/views/student_work/index.html.erb b/app/views/student_work/index.html.erb
index 0250a7eed..82f412eb3 100644
--- a/app/views/student_work/index.html.erb
+++ b/app/views/student_work/index.html.erb
@@ -124,7 +124,7 @@
<% if @is_teacher%>
<%= homework_anonymous_comment(@homework)%>
- <%= link_to(l(:button_edit),edit_homework_common_path(@homework), :class => "fr mr10 work_edit") %>
+ <%= link_to(l(:button_edit),"javascript:void(0)", :class => "fr mr10 un_work_edit",:title => "编辑功能正在维护中") %>
<% else%>
<%= student_anonymous_comment @homework %>
<%= student_new_homework @homework %>
diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb
index 2bbafb4df..f29512b0e 100644
--- a/app/views/users/_course_homework.html.erb
+++ b/app/views/users/_course_homework.html.erb
@@ -19,7 +19,7 @@
<%= link_to "提交("+activity.student_works.count.to_s+")", student_work_index_path(:homework => activity.id), :class=> "c_blue" %>
-
截止时间:<%= format_date(activity.end_time) %>
+
截止时间:<%= activity.end_time.to_s %>
作业描述:<%= activity.description.html_safe %>
diff --git a/app/views/users/_course_message.html.erb b/app/views/users/_course_message.html.erb
index f622ad20c..cbd7a916b 100644
--- a/app/views/users/_course_message.html.erb
+++ b/app/views/users/_course_message.html.erb
@@ -21,7 +21,7 @@
<% end %>
- 发帖时间:<%= format_date(activity.created_on) %>
+ 发帖时间:<%= format_time(activity.created_on) %>
@@ -61,7 +61,7 @@
<%if count > 2 %>
<% end %>
@@ -100,7 +100,7 @@
<% else %>
<%= link_to reply.try(:author).try(:realname), user_path(reply.author_id), :class => "newsBlue mr10 f14" %>
<% end %>
- <%= format_date(reply.created_on) %>
+ <%= format_time(reply.created_on) %>
<%= reply.content.html_safe %>
diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb
index 7edc19681..a558911c1 100644
--- a/app/views/users/_course_news.html.erb
+++ b/app/views/users/_course_news.html.erb
@@ -16,7 +16,7 @@
<%= link_to activity.title.to_s, news_path(activity), :class => "postGrey" %>
- 发布时间:<%= format_date(activity.created_on) %>
+ 发布时间:<%= format_time(activity.created_on) %>
通知描述:
@@ -35,7 +35,7 @@
<%if count>2 %>
<% end %>
@@ -72,7 +72,7 @@
<% else %>
<%= link_to comment.try(:author).try(:realname), user_path(comment.author_id), :class => "newsBlue mr10 f14" %>
<% end %>
- <%= format_date(comment.created_on) %>
+ <%= format_time(comment.created_on) %>
<%= comment.comments.html_safe %>
diff --git a/app/views/users/_course_poll.html.erb b/app/views/users/_course_poll.html.erb
index 15e549ad8..436ae2f46 100644
--- a/app/views/users/_course_poll.html.erb
+++ b/app/views/users/_course_poll.html.erb
@@ -26,7 +26,7 @@
<% end %>
- 发布时间:<%= format_date(activity.published_at) %>
+ 发布时间:<%= format_time(activity.published_at) %>
问卷描述:<%=activity.polls_description.html_safe.to_s%>
diff --git a/app/views/users/_project_issue.html.erb b/app/views/users/_project_issue.html.erb
index a7a98a396..1bd0b834a 100644
--- a/app/views/users/_project_issue.html.erb
+++ b/app/views/users/_project_issue.html.erb
@@ -30,7 +30,7 @@
时间:
- <%=format_date(activity.created_on) %>
+ <%=format_time(activity.created_on) %>
缺陷描述:
@@ -72,7 +72,7 @@
<% if count > 2 %>
<% end %>
@@ -109,7 +109,7 @@
<% else %>
<%= link_to reply.try(:user).try(:realname), user_path(reply.user_id), :class => "newsBlue mr10 f14" %>
<% end %>
- <%= format_date(reply.created_on) %>
+ <%= format_time(reply.created_on) %>
<% if reply.details.any? %>
<% details_to_strings(reply.details).each do |string| %>
diff --git a/app/views/users/_project_message.html.erb b/app/views/users/_project_message.html.erb
index ebf3d0ad2..6c3842f73 100644
--- a/app/views/users/_project_message.html.erb
+++ b/app/views/users/_project_message.html.erb
@@ -24,7 +24,7 @@
<% end %>
- 时间:<%= format_date(activity.created_on) %>
+ 时间:<%= format_time(activity.created_on) %>
帖子描述:
<% if activity.parent_id.nil? %>
@@ -49,7 +49,7 @@
)
<%#=format_date(activity.updated_on)%>
<%if count>2 %>
-
+
<% end %>
@@ -86,7 +86,7 @@
<% else %>
<%= link_to reply.try(:author).try(:realname), user_path(reply.author_id), :class => "newsBlue mr10 f14" %>
<% end %>
- <%= format_date(reply.created_on) %>
+ <%= format_time(reply.created_on) %>
<%= reply.content.html_safe %>
diff --git a/app/views/users/_user_activities.html.erb b/app/views/users/_user_activities.html.erb
index 906787070..f1529ffb8 100644
--- a/app/views/users/_user_activities.html.erb
+++ b/app/views/users/_user_activities.html.erb
@@ -9,6 +9,7 @@
span.ke-icon-emoticons:hover{background-position:-79px -671px;width:50px;height:26px;}
div.ke-toolbar .ke-outline{border:none;}
.ke-inline-block{display: none;}
+ .ke-container{height: 40px !important;}
<% user_activities.each do |user_activity|
if user_activities %>
diff --git a/app/views/users/_user_homework_form.html.erb b/app/views/users/_user_homework_form.html.erb
index 4a38e630b..7be8811a4 100644
--- a/app/views/users/_user_homework_form.html.erb
+++ b/app/views/users/_user_homework_form.html.erb
@@ -15,9 +15,12 @@
<%= calendar_for('homework_end_time')%>
+
+
+
<% if edit_mode %>
@@ -31,9 +34,9 @@
-
<%= select_tag :course_id, options_for_select(get_as_teacher_courses(User.current), homework.course_id), {:class => "InputBox w720",:value => "请选择发布作业的课程"} %>
+
diff --git a/public/assets/kindeditor/kindeditor.js b/public/assets/kindeditor/kindeditor.js
index 98dfc470b..26cd088c4 100644
--- a/public/assets/kindeditor/kindeditor.js
+++ b/public/assets/kindeditor/kindeditor.js
@@ -3536,8 +3536,8 @@ function _getInitHtml(themesPath, bodyClass, cssPath, cssData) {
(_direction === '' ? '' : ''),
'
',
'