From 49984204108911ddf87c5206612f2abe72dd3283 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 22 Aug 2014 16:52:47 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=97=B6=EF=BC=8C=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=9C=A8=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2=E4=BC=9A?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/my_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 14814ed32..0559d1a4a 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -140,11 +140,11 @@ class MyController < ApplicationController @user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation] if @user.save - flash[:notice] = l(:notice_account_password_updated) + flash.now[:notice] = l(:notice_account_password_updated) redirect_to my_account_path end else - flash[:error] = l(:notice_account_wrong_password) + flash.now[:error] = l(:notice_account_wrong_password) end end end From fa90219a523df121d802dea5d489573d36023550 Mon Sep 17 00:00:00 2001 From: linhk <304431313@.com> Date: Fri, 22 Aug 2014 17:24:06 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=9C=A8=E6=B2=A1=E6=9C=89=E2=80=9C?= =?UTF-8?q?=E6=88=91=E7=9A=84=E8=AF=BE=E7=A8=8B=E2=80=9D=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E9=A1=B9=E6=97=B6"=E6=88=91=E7=9A=84=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E2=80=9D=E6=98=BE=E7=A4=BA=E5=AD=90=E9=A1=B5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_base_header.html.erb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/_base_header.html.erb b/app/views/layouts/_base_header.html.erb index b943cf565..37b8aa7e7 100644 --- a/app/views/layouts/_base_header.html.erb +++ b/app/views/layouts/_base_header.html.erb @@ -42,15 +42,14 @@
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"), - user_path(user), - :title => "#{user.name}" %> | ++ <%= link_to image_tag(url_to_avatar(user), :class => "avatar"),user_path(user),:title => "#{user.name}" %> + |
+
+
+
+ + + <%= l(:text_command) %> <% end %>- -<%= f.check_box :is_public, :style => "margin-left:10px;" %><%= l(:label_course_public_info) %> ++ <%= f.check_box :is_public, :style => "margin-left:10px;" %><%= l(:label_course_public_info) %> + <%= f.text_field :course_type, :value => 1 %> From 37920d36c96f8c23fb102c8603c42654bb2cf9ed Mon Sep 17 00:00:00 2001 From: linhk <304431313@.com> Date: Sat, 23 Aug 2014 10:09:36 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=85=AC=E5=85=B1=E8=B4=B4=E5=90=A7?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E8=87=AA=E5=8A=A8=E5=88=86=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/memos/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 75030797b..76e4990a5 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -46,7 +46,7 @@ -<%= label_tag l(:field_subject) %>: <%=h @memo.subject %>
+ <%= label_tag l(:field_subject) %>: <%=h @memo.subject %>
<%= textAreailizable(@memo,:content) %>
From 38c5c86a39776d77f1abb4b542bb7de37f53c216 Mon Sep 17 00:00:00 2001
From: z9hang |