From c0b78198700562b0a442e51c0d839ea2c51fd3e9 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 6 May 2015 14:20:55 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=84=E6=96=99?= =?UTF-8?q?=E6=97=B6=E6=98=B5=E7=A7=B0=E6=8F=90=E7=A4=BA=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/my/account.html.erb | 2 +- config/locales/account/zh.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index 785286eea..6c0c3a78a 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -117,7 +117,7 @@
+
<%= f.text_field :login, :required => true, :size => 25, :name => "login", :style => 'border:1px solid #d3d3d3;'%>
<%= l(:label_max_number) %>
diff --git a/config/locales/account/zh.yml b/config/locales/account/zh.yml
index 97e6ae444..69edc7aa3 100644
--- a/config/locales/account/zh.yml
+++ b/config/locales/account/zh.yml
@@ -11,7 +11,7 @@ zh:
#
# 公共变量
#
- label_max_number: "登录名是在网站中显示的您的公开标识,只能为英文和数字。"
+ label_max_number: "登录名是在网站中显示的您的公开标识,只能为下划线、@、.以及英文和数字。"
field_login: 登录名
field_password: 密码
From 6bbf8c8f45bbbfc10b9a7cf5696ca820605727cf Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Wed, 6 May 2015 14:53:25 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=80=9A=E7=9F=A5?=
=?UTF-8?q?=E3=80=81=E8=AF=BE=E7=A8=8B=E7=95=99=E8=A8=80=E5=8F=96=E6=B6=88?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E5=88=A0=E9=99=A4=E7=BC=96=E8=BE=91=E5=99=A8?=
=?UTF-8?q?=E5=86=85=E5=86=85=E5=AE=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/courses/_courses_jours.html.erb | 2 +-
app/views/news/_course_show.html.erb | 8 +-------
public/stylesheets/courses.css | 2 +-
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/app/views/courses/_courses_jours.html.erb b/app/views/courses/_courses_jours.html.erb
index 69e600b94..adbbf4780 100644
--- a/app/views/courses/_courses_jours.html.erb
+++ b/app/views/courses/_courses_jours.html.erb
@@ -15,7 +15,7 @@
<%= hidden_field_tag :asset_id,params[:asset_id],:required => false,:style => 'display:none' %>
<%= f.kindeditor 'course_message',:height => '140px;',:editor_id => 'leave_message_editor',:input_html=>{:id => "leave_meassge",:style => "resize: none;",
:placeholder => "#{l(:label_welcome_my_respond)}",:maxlength => 250}%>
- 取 消
+ 取 消
<%= l(:button_leave_meassge)%>
diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb
index 1160f09e3..2ead9173a 100644
--- a/app/views/news/_course_show.html.erb
+++ b/app/views/news/_course_show.html.erb
@@ -1,9 +1,3 @@
-
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
-
+
<%= l(:label_cancel_with_space) %>
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index d93bc8519..bb7294e2e 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -174,7 +174,7 @@ a:hover.work_edit{color: #fff; background: #64bdd9;}
.wzan a{ display: block;}
a.wzan_img{background:url(images/pic_zan.png) 0 -59px no-repeat; display:block; height:31px; width:30px; color:#fff;}
a.wzan_visited{background:url(images/pic_zan.png) 0 0 no-repeat;}
-.msg_box{ width:670px; height:205px; border-bottom:1px dashed #CCC; padding-top:10px;}
+.msg_box{ width:670px; height:225px; border-bottom:1px dashed #CCC; padding-top:10px;}
.msg_box h4{ }
.msg_box textarea{width:658px;height:90px;padding:5px;overflow:hidden;background-color: #ffffff; border:1px solid #CCC; margin:5px 0px; color:#666; font-size:12px; }
From 4c268b13dd86daf2fbf74ce27ab60d47e237c052 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Wed, 6 May 2015 14:55:48 +0800
Subject: [PATCH 3/7] =?UTF-8?q?#2460=E5=8C=BF=E8=AF=84=E5=88=86=E9=85=8D?=
=?UTF-8?q?=E6=95=B0=E9=87=8F=E9=99=90=E5=88=B6=E9=95=BF=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/bids/_new_homework_form.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/bids/_new_homework_form.html.erb b/app/views/bids/_new_homework_form.html.erb
index 16f78491b..7a5f628f9 100644
--- a/app/views/bids/_new_homework_form.html.erb
+++ b/app/views/bids/_new_homework_form.html.erb
@@ -35,7 +35,7 @@
<%= l(:label_member_new) %>");
+ "
");
$('#ajax-modal').parent().removeClass("alert_praise");
$('#ajax-modal').parent().css("top","").css("left","");
$('#ajax-modal').parent().addClass("alert_box");
From b456bc0e62f45cd5f37dcecd60952ec1de67570e Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Wed, 6 May 2015 16:55:59 +0800
Subject: [PATCH 7/7] =?UTF-8?q?=E8=AF=84=E5=88=86=E6=94=AF=E6=8C=81?=
=?UTF-8?q?=E6=89=930=E5=88=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/homework_attach_controller.rb | 3 ++-
app/views/homework_attach/_homework.html.erb | 2 +-
app/views/homework_attach/_review.html.erb | 2 +-
app/views/homework_attach/_show_star.html.erb | 1 +
public/stylesheets/css.css | 2 +-
5 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/app/controllers/homework_attach_controller.rb b/app/controllers/homework_attach_controller.rb
index 4982a4b6b..523e430fb 100644
--- a/app/controllers/homework_attach_controller.rb
+++ b/app/controllers/homework_attach_controller.rb
@@ -445,7 +445,8 @@ class HomeworkAttachController < ApplicationController
is_teacher = @is_teacher ? 1 : 0
#保存评分@homework.rate(@m_score.to_i,User.current.id,:quality, (@is_teacher ? 1 : 0))
@is_comprehensive_evaluation = @is_teacher ? 1 : (@is_anonymous_comments ? 2 : 3) #判断当前评论是老师评论?匿评?留言
- if @m_score && (@is_teacher || @is_anonymous_comments)
+ if @is_teacher || @is_anonymous_comments
+ @m_score ||= 0
rate = @homework.rates(:quality).where(:rater_id => User.current.id, :is_teacher_score => is_teacher).first
if rate
rate.stars = @m_score
diff --git a/app/views/homework_attach/_homework.html.erb b/app/views/homework_attach/_homework.html.erb
index 466444528..973dbc51a 100644
--- a/app/views/homework_attach/_homework.html.erb
+++ b/app/views/homework_attach/_homework.html.erb
@@ -32,7 +32,7 @@
<% unless is_student_batch_homework %>
<%= l(:label_teacher_score)%>:
- <%= (homework.t_score.nil? || (homework.t_score && homework.t_score.to_i == 0)) ? l(:label_without_score) : format("%.2f",homework.t_score)%>
+ <%= (homework.t_score.nil?) ? l(:label_without_score) : format("%.2f",homework.t_score)%>
<% end %>
diff --git a/app/views/homework_attach/_review.html.erb b/app/views/homework_attach/_review.html.erb
index 876980168..15203e8fc 100644
--- a/app/views/homework_attach/_review.html.erb
+++ b/app/views/homework_attach/_review.html.erb
@@ -26,7 +26,7 @@
<%= format_time(review.created_at) %>
- <% if review.stars && review.stars.to_i > 0%>
+ <% if review.stars%>
<%= l(:label_work_rating) %>:
diff --git a/app/views/homework_attach/_show_star.html.erb b/app/views/homework_attach/_show_star.html.erb
index 80f9d7f54..6cb901875 100644
--- a/app/views/homework_attach/_show_star.html.erb
+++ b/app/views/homework_attach/_show_star.html.erb
@@ -1,3 +1,4 @@
+零分
diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css
index 3ef981910..fa5465dba 100644
--- a/public/stylesheets/css.css
+++ b/public/stylesheets/css.css
@@ -86,7 +86,7 @@ a.wzan_visited{background:url(images/pic_zan.png) 0 0 no-repeat;}
.ping_con h2{ font-size:14px; color:#444443; margin-bottom:10px; }
.ping_con p{ color:#777777; font-size:12px; border-bottom:1px dashed #CCC; padding-bottom:5px;}
.ping_con p span a{ color:#777777;}
-.ping_star{ width:165px; color:#333; font-weight:bold; margin-bottom:5px;}
+.ping_star{ width:185px; color:#333; font-weight:bold; margin-bottom:5px;}
.ping_star span a{ float:right; width:20px; height:20px; background:url(images/star.png);background-repeat: no-repeat; margin-right:3px;}
.ping_con textarea{ height:76px; border:1px solid #15bccf; margin-bottom:5px; color:#666; font-size:12px;}
a.ping_sub{ float:right; height:22px; width:60px; margin-right:20px; background:#15bccf; color:#fff; text-align:center;}