diff --git a/app/views/homework_attach/_show_star.html.erb b/app/views/homework_attach/_show_star.html.erb
index 6cb901875..49c9e2cf7 100644
--- a/app/views/homework_attach/_show_star.html.erb
+++ b/app/views/homework_attach/_show_star.html.erb
@@ -1,4 +1,4 @@
-
零分
+
零分
From 3cb8962f015d63a623b25b5da47a59d36ea1fbaa Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Thu, 7 May 2015 17:16:09 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E5=9F=9F?=
=?UTF-8?q?=E5=90=8D=E6=94=B9=E4=B8=BAuser.truestie.net?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/account_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index 22db3d5b4..eeffe8b7b 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -314,7 +314,7 @@ class AccountController < ApplicationController
#根据home_url生产正则表达式
eval("code = " + "/^" + home_url.gsub(/\//,"\\\/") + "\\\/*(welcome)?\\\/*(\\\/index\\\/*.*)?\$/")
if (code=~params[:back_url] || params[:back_url].to_s.include?('lost_password')) && last_login_on != ''
- redirect_to user_activities_path(user)
+ redirect_to user_activities_path(user,host: Setting.user_domain)
else
if last_login_on == ''
redirect_to my_account_url
From cfe30213916b65dff4a1e8178f2c744c62dcf73d Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Fri, 8 May 2015 09:16:11 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=94=B6=E7=B4=A2?=
=?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E4=B8=A2=E5=A4=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
config/locales/navigatiors/zh.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config/locales/navigatiors/zh.yml b/config/locales/navigatiors/zh.yml
index 76131a001..97c6da61a 100644
--- a/config/locales/navigatiors/zh.yml
+++ b/config/locales/navigatiors/zh.yml
@@ -15,8 +15,8 @@ zh:
label_forum_all: 公共贴吧
label_school_all: 中国高校
label_contest_innovate: 创新竞赛
- #label_software_user: 软件创客
- #label_requirement_enterprise: 软件众包
+ label_software_user: 软件创客
+ label_requirement_enterprise: 软件众包
label_stores_index: 资源搜索
label_login: 登录
From 2749c4f890d51ddf79256b88f95f1206330f5d6a Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Fri, 8 May 2015 09:37:57 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E8=A7=92=E8=89=B2=E6=94=B9=E4=B8=BA?=
=?UTF-8?q?=E4=B8=AD=E6=96=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/helpers/courses_helper.rb | 13 +++++++++++++
app/views/courses/_course_members.html.erb | 2 +-
app/views/courses/_member.html.erb | 8 ++++----
3 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/app/helpers/courses_helper.rb b/app/helpers/courses_helper.rb
index 801d98b0b..babd8cb12 100644
--- a/app/helpers/courses_helper.rb
+++ b/app/helpers/courses_helper.rb
@@ -797,4 +797,17 @@ module CoursesHelper
end
result
end
+
+ def zh_course_role role
+ if role == "TeachingAsistant"
+ result = l(:label_TA)
+ elsif role == "Teacher"
+ result = l(:label_teacher)
+ elsif role == "Student"
+ result = l(:label_student)
+ elsif role == "Manager"
+ result = l(:field_admin)
+ end
+ result
+ end
end
diff --git a/app/views/courses/_course_members.html.erb b/app/views/courses/_course_members.html.erb
index 78dc6c319..9f15405dc 100644
--- a/app/views/courses/_course_members.html.erb
+++ b/app/views/courses/_course_members.html.erb
@@ -37,7 +37,7 @@
<% @roles.each do |role| %>
<%= radio_button_tag 'membership[role_ids][]', role.id, role.name == "学生" || role.name == "Student" %>
-
+
<% end %>
diff --git a/app/views/courses/_member.html.erb b/app/views/courses/_member.html.erb
index a4b5bae6e..40049f104 100644
--- a/app/views/courses/_member.html.erb
+++ b/app/views/courses/_member.html.erb
@@ -2,21 +2,21 @@
<%= link_to_user_header member.principal,true,:class => "w150 c_orange fl" %>
- <%= h member.roles.sort.collect(&:to_s).join(', ') %>
+ <%= zh_course_role(h member.roles.sort.collect(&:to_s).join(', ')) %>
<%= form_for(member, {:as => :membership, :remote => true, :url => membership_path(member),
:method => :put,
:html => {:id => "member-#{member.id}-roles-form", :class => 'hol'}}
) do |f| %>
<% @roles.each do |role| %>
-
+
<%= radio_button_tag 'membership[role_ids][]', role.id, member.roles.include?(role),
:disabled => member.member_roles.detect { |mr| mr.role_id == role.id && !mr.inherited_from.nil? } %>
-
+
<% end %>
<%= hidden_field_tag 'membership[role_ids][]', '' %>
-
+
<%= l(:button_change)%>
From db6218a4874acddb0516c8f91e3d7d7457ef6589 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Fri, 8 May 2015 09:54:40 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E6=95=99=E5=B8=88=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0=E8=A7=92=E8=89=B2=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E3=80=81=E6=95=99=E5=B8=88=E6=98=BE=E7=A4=BA=E7=9C=9F?=
=?UTF-8?q?=E5=AE=9E=E5=A7=93=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/courses/_course_teacher.html.erb | 4 +++-
public/stylesheets/public.css | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/app/views/courses/_course_teacher.html.erb b/app/views/courses/_course_teacher.html.erb
index 5571a4546..ef1ffc808 100644
--- a/app/views/courses/_course_teacher.html.erb
+++ b/app/views/courses/_course_teacher.html.erb
@@ -1,6 +1,7 @@
加入时间
+
角色
<% members.each do |member| %>
@@ -9,8 +10,9 @@
<%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :width => 32, :height => 32)) %>
<%= l(:label_username)%>
- <%= link_to(member.user.name, user_path(member.user),:class => "ml10 c_blue02") %>
+ <%= link_to(member.user.show_name, user_path(member.user),:class => "ml10 c_blue02") %>
<%= format_date(member.created_on)%>
+
<%= zh_course_role(h member.roles.sort.collect(&:to_s).first)%>
<% end%>
diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css
index 5006a11e4..031b73afb 100644
--- a/public/stylesheets/public.css
+++ b/public/stylesheets/public.css
@@ -70,6 +70,9 @@ h4{ font-size:14px; color:#3b3b3b;}
.mr20{ margin-right:20px;}
.mr30{ margin-right:30px;}
.mr40{ margin-right:40px;}
+.mr50{margin-right: 50px;}
+.mr55{margin-right: 55px;}
+.mr70{margin-right: 70px;}
.mt3{ margin-top:3px;}
.mt5{ margin-top:5px;}
.mt8{ margin-top:8px;}
@@ -79,6 +82,7 @@ h4{ font-size:14px; color:#3b3b3b;}
.mb20{ margin-bottom:20px;}
.pl15{ padding-left:15px;}
.w20{ width:20px;}
+.w45{ width: 45px;}
.w60{ width:60px;}
.w70{ width:70px;}
.w90{ width:90px;}