Date: Thu, 4 Sep 2014 09:46:24 +0800
Subject: [PATCH 06/16] =?UTF-8?q?label=E5=86=99=E9=94=99=E7=BA=A0=E6=AD=A3?=
=?UTF-8?q?=EF=BC=8C=E4=B8=80=E4=B8=AA=E5=86=99=E6=AD=BB=E7=9A=84=E4=B8=BB?=
=?UTF-8?q?=E9=A1=B5=E9=93=BE=E6=8E=A5=E7=BA=A0=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/helpers/projects_helper.rb | 4 ++--
app/views/courses/_course.html.erb | 2 +-
.../_course_sort_by_attachtypel.html.erb | 2 +-
app/views/files/_sort_by_attachtypel.html.erb | 2 +-
app/views/forums/_form.html.erb | 2 +-
app/views/forums/show.html.erb | 2 +-
app/views/users/_score_new_index.html.erb | 2 +-
app/views/welcome/_course_list.html.erb | 2 +-
app/views/welcome/course.html.erb | 4 ++--
app/views/welcome/index.html.erb | 2 +-
config/locales/en.yml | 13 +++++++++---
config/locales/zh.yml | 20 +++++++++----------
public/file_not_found.html.erb | 6 +++---
13 files changed, 35 insertions(+), 28 deletions(-)
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 6849ba83d..b0f54a5f0 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -176,14 +176,14 @@ module ProjectsHelper
#Modified by young
if (project.try(:project_type) == Project::ProjectType_course )
unless project.is_public == 1
- s = "#{l(:lable_private)}".html_safe
+ s = "#{l(:label_private)}".html_safe
else
s = "".html_safe
end
s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}").html_safe
else
unless project.is_public
- s = "#{l(:lable_private)}".html_safe
+ s = "#{l(:label_private)}".html_safe
else
s = "".html_safe
end
diff --git a/app/views/courses/_course.html.erb b/app/views/courses/_course.html.erb
index 12eec558f..239f2da26 100644
--- a/app/views/courses/_course.html.erb
+++ b/app/views/courses/_course.html.erb
@@ -11,7 +11,7 @@
<%= content_tag('span',"#{l(:label_bid_show_course_name)}:", :class => "course-font")%>
<% unless @course.is_public == 1 %>
- <%= l(:lable_private) %>
+ <%= l(:label_private) %>
<% end %>
<%= content_tag('span', link_to("#{@course.name}", course_path(@course), :class => "info"))%>
diff --git a/app/views/files/_course_sort_by_attachtypel.html.erb b/app/views/files/_course_sort_by_attachtypel.html.erb
index c13d76620..5a0cdba02 100644
--- a/app/views/files/_course_sort_by_attachtypel.html.erb
+++ b/app/views/files/_course_sort_by_attachtypel.html.erb
@@ -37,7 +37,7 @@
<%= number_to_human_size(file.filesize) %> |
- <%= file.attachmentstype.nil? ? l(:lable_unknow_type):file.attachmentstype.typeName %>
+ <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>
<%= render :partial => 'attachments/course_type_edit', :locals => {:attachmenttypes => attachmenttypes,
diff --git a/app/views/files/_sort_by_attachtypel.html.erb b/app/views/files/_sort_by_attachtypel.html.erb
index eb7ffffec..6c6e11791 100644
--- a/app/views/files/_sort_by_attachtypel.html.erb
+++ b/app/views/files/_sort_by_attachtypel.html.erb
@@ -37,7 +37,7 @@
| <%= number_to_human_size(file.filesize) %> |
- <%= file.attachmentstype.nil? ? l(:lable_unknow_type):file.attachmentstype.typeName %>
+ <%= file.attachmentstype.nil? ? l(:label_unknow_type):file.attachmentstype.typeName %>
<%= render :partial => 'attachments/type_edit', :locals => {:attachmenttypes => attachmenttypes,
diff --git a/app/views/forums/_form.html.erb b/app/views/forums/_form.html.erb
index 993563954..c253e8d78 100644
--- a/app/views/forums/_form.html.erb
+++ b/app/views/forums/_form.html.erb
@@ -21,7 +21,7 @@
<%= f.text_area :description, :required => true, :id => 'editor01' %>
- (<%= l(:lable_forums_max_length) %>)
+ (<%= l(:label_forums_max_length) %>)
<%= submit_tag l(:button_submit) %>
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb
index 48913a38d..1622bbe02 100644
--- a/app/views/forums/show.html.erb
+++ b/app/views/forums/show.html.erb
@@ -18,7 +18,7 @@
<%= f.text_field :subject, :required => true%>
<%= f.text_area :content, :required => true, :id => 'editor02' %>
- (<%= l(:lable_memos_max_length) %>)
+ (<%= l(:label_memos_max_length) %>)
<%= l(:label_attachment_plural) %>
diff --git a/app/views/users/_score_new_index.html.erb b/app/views/users/_score_new_index.html.erb
index b79a57e71..d0647d8e3 100644
--- a/app/views/users/_score_new_index.html.erb
+++ b/app/views/users/_score_new_index.html.erb
@@ -7,7 +7,7 @@
= <%= format("%.2f" ,collaboration(option_num)).to_i %> + <%= format("%.2f" , influence(option_num) ).to_i %>
+ <%= "(" if skill(option_num) < 0 %> <%= format("%.2f" , skill(option_num)).to_i %> <%= ")" if skill(option_num) < 0 %> + <%= format("%.2f" , active(option_num)).to_i %>
<% if (format("%.2f" ,collaboration(option_num)).to_i + format("%.2f" , influence(option_num) ).to_i + format("%.2f" , skill(option_num)).to_i + format("%.2f" , active(option_num)).to_i) < 0 %>
- <%= l(:lable_score_less_than_zero) %>
+ <%= l(:label_score_less_than_zero) %>
<% else %>
= <%= format("%.2f" ,option_num.total_score).to_i %>
<% end %>
diff --git a/app/views/welcome/_course_list.html.erb b/app/views/welcome/_course_list.html.erb
index 0dcf1085a..b6dac9022 100644
--- a/app/views/welcome/_course_list.html.erb
+++ b/app/views/welcome/_course_list.html.erb
@@ -7,7 +7,7 @@
<% unless course.is_public == 1 %>
- <%= l(:lable_private) %>
+ <%= l(:label_private) %>
<% end %>
<%= link_to(course.name.truncate(30, omission: '...')+":", course_path(course.id), :class => "d-g-blue d-p-project-name", :title => "#{course.name}") %>
diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb
index c46df7777..e25ef5665 100644
--- a/app/views/welcome/course.html.erb
+++ b/app/views/welcome/course.html.erb
@@ -92,7 +92,7 @@
<% if User.current.logged? %>
- <%= render :partial => 'no_course_title', :locals => {:course_title => l(:lable_school_no_course)} %>
+ <%= render :partial => 'no_course_title', :locals => {:course_title => l(:label_school_no_course)} %>
<%= render :partial => 'course_list', :locals => {:course_list => find_all_new_hot_course(9, @school_id)} %>
<% else %>
@@ -115,7 +115,7 @@
<%= render :partial => 'course_list', :locals => {:course_list => school_course} %>
<% if school_course.count < 10 %>
- <%= render :partial => 'no_course_title', :locals => {:course_title => l(:lable_school_less_course)} %>
+ <%= render :partial => 'no_course_title', :locals => {:course_title => l(:label_school_less_course)} %>
<%= render :partial => 'course_list', :locals => {:course_list => find_all_new_hot_course(9 - school_course.count, @school_id)} %>
<% end %>
diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb
index fd4a1637e..b73f0970f 100644
--- a/app/views/welcome/index.html.erb
+++ b/app/views/welcome/index.html.erb
@@ -73,7 +73,7 @@
<% unless project.is_public %>
- <%= l(:lable_private) %>
+ <%= l(:label_private) %>
<% end %>
<%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%>
(<%= link_to "#{projectCount(project)}人", project_member_path(project) ,:course =>'0' %>)
diff --git a/config/locales/en.yml b/config/locales/en.yml
index ee7e76ed1..987acabc4 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1807,7 +1807,14 @@ en:
label_company_name: Company Name
notice_account_invalid_creditentials_new: You have not to the mailbox activation
- lable_unknow_type: Unknow type
- lable_score_less_than_zero: Score less than 0, revised to 0
+ label_school_no_course: The school did not offer any courses, you can view other school curriculum
+ label_school_less_course: The school offers courses in less, you can view other school curriculum
+ label_file_not_found: Sorry, the file can't be downloaded now!
+ label_goto_homepage: Return to the home page
+ label_trustie_team: The Trustie development team
+ label_memos_max_length: The content of the post up to 65535 characters in length
+ label_forums_max_length: Post Bar describing the maximum length of 65535 characters
+ label_unknow_type: Unknow type
+ label_score_less_than_zero: Score less than 0, revised to 0
review_assignments: review assignments
- lable_private: private
\ No newline at end of file
+ label_private: private
\ No newline at end of file
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index a3db5964b..874c9108a 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -2106,16 +2106,16 @@ zh:
modal_valid_passing: 可以使用
label_bug: 漏洞
- lable_school_no_course: 该学校未开设任何课程,您可以查看其他学校课程
- lable_school_less_course: 该学校开设课程较少,您可以查看其他学校课程
+ label_school_no_course: 该学校未开设任何课程,您可以查看其他学校课程
+ label_school_less_course: 该学校开设课程较少,您可以查看其他学校课程
- lable_file_not_found: 对不起,该文件现在不能下载!
- lable_goto_homepage: 返回主页
- lable_trustie_team: Trustie开发团队
+ label_file_not_found: 对不起,该文件现在不能下载!
+ label_goto_homepage: 返回主页
+ label_trustie_team: Trustie开发团队
- lable_memos_max_length: 帖子内容最大长度为65535个字符
- lable_forums_max_length: 贴吧描述最大长度为65535个字符
- lable_unknow_type: 未知类型
- lable_score_less_than_zero: 得分小于0,修正为0
+ label_memos_max_length: 帖子内容最大长度为65535个字符
+ label_forums_max_length: 贴吧描述最大长度为65535个字符
+ label_unknow_type: 未知类型
+ label_score_less_than_zero: 得分小于0,修正为0
review_assignments: 评审任务
- lable_private: 私有
+ label_private: 私有
diff --git a/public/file_not_found.html.erb b/public/file_not_found.html.erb
index b3b45203a..8cd5e7af6 100644
--- a/public/file_not_found.html.erb
+++ b/public/file_not_found.html.erb
@@ -26,12 +26,12 @@
- <%= l(:lable_file_not_found) %>
-
+ <%= l(:label_file_not_found) %>
+ <%= link_to l(:label_goto_homepage),{:controller=>'welcome',:action=>'index',:host=>Setting.host_name} %>
- <%= l(:lable_trustie_team) %>
+ <%= l(:label_trustie_team) %>
From c92a750ec81dc485ea741e06125aa3ab9519f724 Mon Sep 17 00:00:00 2001
From: z9hang
Date: Thu, 4 Sep 2014 10:12:31 +0800
Subject: [PATCH 07/16] =?UTF-8?q?=E7=BC=A9=E8=BF=9B=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=EF=BC=8C=E4=B8=89=E7=9B=AE=E8=BF=90=E7=AE=97=E7=AC=A6=E4=BB=A3?=
=?UTF-8?q?=E6=9B=BF=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/helpers/projects_helper.rb | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index b0f54a5f0..9fcebe640 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -173,25 +173,14 @@ module ProjectsHelper
# Renders the projects index
def render_project_hierarchy(projects)
render_project_nested_lists(projects) do |project|
- #Modified by young
- if (project.try(:project_type) == Project::ProjectType_course )
- unless project.is_public == 1
- s = "#{l(:label_private)}".html_safe
- else
- s = "".html_safe
- end
- s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}").html_safe
- else
- unless project.is_public
- s = "#{l(:label_private)}".html_safe
- else
- s = "".html_safe
- end
- s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}")
- end
- #Ended by young
+ if (project.try(:project_type) == Project::ProjectType_course )
+ s = project.is_public == 1 ? "".html_safe : "#{l(:label_private)}".html_safe
+ s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}").html_safe
+ else
+ s = project.is_public ? "".html_safe : "#{l(:label_private)}".html_safe
+ s += link_to_project(project, {}, :class => "#{project.css_classes} #{User.current.member_of?(project) ? 'my-project' : nil}")
+ end
if project.description.present?
- #Delete by nie.
# s << content_tag('td', textilizable(project.short_description, :project => project), :class => 'wiki description')
end
s
From c43883f5f9960100ed713fec7a55447a4747f7ef Mon Sep 17 00:00:00 2001
From: z9hang
Date: Thu, 4 Sep 2014 10:23:55 +0800
Subject: [PATCH 08/16] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8D=A2=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/attachments/file.html.erb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/attachments/file.html.erb b/app/views/attachments/file.html.erb
index be165ad42..d4cb19880 100644
--- a/app/views/attachments/file.html.erb
+++ b/app/views/attachments/file.html.erb
@@ -6,8 +6,8 @@
<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
(<%= number_to_human_size @attachment.filesize %>)   
-
- <% if @attachment!=nil &&(@attachment.container_type == 'Document' || @attachment.container_type == 'WikiPage')&&User.current.allowed_to?({:controller => 'code_review', :action => 'update_diff_view'}, @attachment.project) %>
+ <% if @attachment!=nil &&(@attachment.container_type == 'Document' || @attachment.container_type == 'WikiPage') &&
+ User.current.allowed_to?({:controller => 'code_review', :action => 'update_diff_view'}, @attachment.project) %>
<%= l(:review_assignments)+":" %><%= link = link_to(l(:button_add), {:controller => 'code_review',
:action => 'assign', :action_type => 'attachment',
:id=>@attachment.project,
From 6ec1a7ce058636195576c41ffaa06fa01a5d596a Mon Sep 17 00:00:00 2001
From: z9hang
Date: Thu, 4 Sep 2014 11:39:04 +0800
Subject: [PATCH 09/16] =?UTF-8?q?=E7=BC=BA=E9=99=B7=E8=87=AA=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E6=9F=A5=E8=AF=A2=E5=B8=83=E5=B1=80=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=EF=BC=8C=E4=B8=8B=E6=8B=89=E6=A1=86=E5=A4=AA=E9=95=BF=E5=AF=BC?=
=?UTF-8?q?=E8=87=B4=EF=BC=8C=E7=BC=A9=E5=B0=8F=E5=85=B6=E6=9C=80=E5=A4=A7?=
=?UTF-8?q?=E9=95=BF=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/stylesheets/application.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 1d785eb9d..aaa7506df 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1636,7 +1636,7 @@ fieldset#filters td.field { width:230px; }
fieldset#filters td.operator { width:180px; }
fieldset#filters td.operator select {max-width:170px;}
fieldset#filters td.values { white-space:nowrap; }
-fieldset#filters td.values select {min-width:130px;max-width: 220px;}
+fieldset#filters td.values select {min-width:130px;max-width: 100px;}
fieldset#filters td.values input {height:1em;}
fieldset#filters td.add-filter { text-align: right; vertical-align: top; }
From 36329200b7a91995df9afc603d0c022ade7fc5e5 Mon Sep 17 00:00:00 2001
From: z9hang
Date: Thu, 4 Sep 2014 14:11:20 +0800
Subject: [PATCH 10/16] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=AE=BF=E9=97=AE?=
=?UTF-8?q?=E7=A7=AF=E5=88=86=E9=93=BE=E6=8E=A5=E6=8A=A5=E9=94=99=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=8E=9F=E5=9B=A0=EF=BC=9A1=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E7=A7=AF=E5=88=86=E6=9C=89=E4=B8=AA=E6=96=B9=E6=B3=95?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=90=8D=E5=AD=97=E6=AD=A4=E5=A4=84?=
=?UTF-8?q?=E6=9C=AA=E6=94=B9=E3=80=822=E4=B8=AA=E4=BA=BA=E7=A7=AF?=
=?UTF-8?q?=E5=88=86=E9=93=BE=E6=9C=89=E4=B8=AA=E5=8F=98=E9=87=8F=E6=9C=AA?=
=?UTF-8?q?=E8=B5=8B=E5=80=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/projects/show_projects_score.html.erb | 7 +++----
app/views/users/_score_new_index.html.erb | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/app/views/projects/show_projects_score.html.erb b/app/views/projects/show_projects_score.html.erb
index 94f3dfaf8..b16f46f91 100644
--- a/app/views/projects/show_projects_score.html.erb
+++ b/app/views/projects/show_projects_score.html.erb
@@ -1,4 +1,3 @@
-
@@ -16,7 +15,7 @@
<%= yield :header_tags -%>
-
+<% if @project %>
<%= l(:label_projects_score) %>
@@ -54,7 +53,7 @@
<%= link_to l(:label_file_score), {:controller => 'projects', :action => 'file_score_index', :remote => true}%> :
- <%= format("%.2f" , document_score(@project)).to_i %>
+ <%= format("%.2f" , documents_score(@project)).to_i %>
<%= link_to l(:label_code_submit_score), {:controller => 'projects', :action => 'code_submit_score_index', :remote => true}%> :
@@ -69,4 +68,4 @@
<%= render :partial => 'projects/project_score_index', :locals => {:index => 0 } %>
-
\ No newline at end of file
+<% end %>
\ No newline at end of file
diff --git a/app/views/users/_score_new_index.html.erb b/app/views/users/_score_new_index.html.erb
index d0647d8e3..733088067 100644
--- a/app/views/users/_score_new_index.html.erb
+++ b/app/views/users/_score_new_index.html.erb
@@ -1,5 +1,5 @@
-
+<% option_num = get_option_number(@user,1) %>
<%= l(:label_user_score) %>
= <%= l(:label_user_score_of_collaboration) %> + <%= l(:label_user_score_of_influence) %> +
<%= l(:label_user_score_of_skill)%> + <%= l(:label_user_score_of_active) %>
@@ -11,4 +11,4 @@
<% else %>
= <%= format("%.2f" ,option_num.total_score).to_i %>
<% end %>
-
+
From a3aa2b0c2b042506f6b6f54a97e493ee65d1216f Mon Sep 17 00:00:00 2001
From: z9hang
Date: Thu, 4 Sep 2014 15:32:31 +0800
Subject: [PATCH 11/16] =?UTF-8?q?#1087=20=E9=A1=B9=E7=9B=AE--=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE--=E7=89=88=E6=9C=AC=EF=BC=9A=E6=96=B0=E5=BB=BA?=
=?UTF-8?q?=E7=89=88=E6=9C=AC=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=E5=8F=8A?=
=?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=20?=
=?UTF-8?q?=E5=90=8D=E5=AD=97=E8=BF=87=E9=95=BF=E6=97=B6=E6=8F=90=E4=BA=A4?=
=?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=A4=B1=E8=B4=A5=E4=BF=A1=E6=81=AF=EF=BC=8C?=
=?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E6=AD=A3=E7=A1=AE=E5=A1=AB=E5=86=99?=
=?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=8F=90=E4=BA=A4=E6=88=90=E5=8A=9F=EF=BC=8C?=
=?UTF-8?q?=E4=BD=86=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=E9=94=99=E8=AF=AF?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9A=E5=8E=9F=E5=9B=A0=EF=BC=9A=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4=E6=88=90=E5=8A=9F=E5=90=8E=E4=BB=96=E7=94=A8=E7=9A=84?=
=?UTF-8?q?=E6=98=AF=E8=BF=94=E5=9B=9E=E4=B8=8A=E4=B8=80=E4=B8=AA=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E6=88=96=E9=BB=98=E8=AE=A4=E9=A1=B5=E9=9D=A2=EF=BC=8C?=
=?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E6=8F=90=E4=BA=A4=E8=BF=94=E5=9B=9E?=
=?UTF-8?q?=E5=88=B0=E4=B8=8A=E4=B8=80=E4=B8=AA=E9=A1=B5=E9=9D=A2=E4=BE=9D?=
=?UTF-8?q?=E7=84=B6=E6=98=AF=E6=96=B0=E5=BB=BA=E7=89=88=E6=9C=AC=E7=9A=84?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4=E6=88=90=E5=8A=9F=E5=88=99=E6=8C=87=E5=AE=9A=E8=B7=B3?=
=?UTF-8?q?=E5=88=B0=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE=E7=9A=84=E7=89=88?=
=?UTF-8?q?=E6=9C=AC=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2=E3=80=82=E4=B8=A4?=
=?UTF-8?q?=E4=B8=AA=E6=8D=A2=E8=A1=8C=E9=97=AE=E9=A2=98=EF=BC=8C=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E6=8D=A2=E8=A1=8C=E7=9A=84css=E5=B1=9E=E6=80=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/versions_controller.rb | 2 +-
public/stylesheets/application.css | 2 +-
public/themes/redpenny-master/stylesheets/application.css | 3 ++-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb
index 3641e0c61..5824848ff 100644
--- a/app/controllers/versions_controller.rb
+++ b/app/controllers/versions_controller.rb
@@ -107,7 +107,7 @@ class VersionsController < ApplicationController
respond_to do |format|
format.html do
flash[:notice] = l(:notice_successful_create)
- redirect_back_or_default settings_project_path(@project, :tab => 'versions')
+ redirect_to settings_project_path(@project, :tab => 'versions')
end
format.js
format.api do
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index aaa7506df..e75230700 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1350,7 +1350,7 @@ tr.message.locked td.subject { background: url(../images/locked.png) no-repeat 0
tr.message.sticky td.subject { background: url(../images/bullet_go.png) no-repeat 0 1px; font-weight: bold; }
tr.version.closed, tr.version.closed a { color: #999; }
-tr.version td.name { padding-left: 20px; }
+tr.version td.name { padding-left: 20px;word-break: break-all; }
tr.version.shared td.name { background: url(../images/link.png) no-repeat 0% 70%; }
tr.version td.date, tr.version td.status, tr.version td.sharing { text-align: center; white-space:nowrap; }
diff --git a/public/themes/redpenny-master/stylesheets/application.css b/public/themes/redpenny-master/stylesheets/application.css
index 098e02be2..9fe6625ef 100644
--- a/public/themes/redpenny-master/stylesheets/application.css
+++ b/public/themes/redpenny-master/stylesheets/application.css
@@ -689,7 +689,8 @@ table.list tbody td,table.list tbody tr td,table.list tbody tr td.checkbox
{
border-bottom:solid 1px #ddd;
font-size:11px;
- padding:4px 10px 4px 3px
+ padding:4px 10px 4px 3px;
+ word-break: break-all;
}
table.list thead th
From bd636115d50504e7a3353c76e4a0c7fb73343cf1 Mon Sep 17 00:00:00 2001
From: z9hang
Date: Thu, 4 Sep 2014 15:41:59 +0800
Subject: [PATCH 12/16] =?UTF-8?q?#1177=20=E6=AD=A3=E5=BC=8F=E7=89=88?=
=?UTF-8?q?=EF=BC=9A=E9=A1=B9=E7=9B=AE--=E6=96=87=E6=A1=A3=EF=BC=8C?=
=?UTF-8?q?=E7=82=B9=E5=87=BB=E4=B8=8B=E8=BD=BD=E4=B8=8A=E4=BC=A0=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=9B=BE=E6=A0=87=E6=8C=89=E9=92=AE=EF=BC=8C?=
=?UTF-8?q?=E5=BC=B9=E5=87=BA=E7=AA=97=E5=8F=A3=E4=B8=AD=E6=9C=89=E4=B8=A4?=
=?UTF-8?q?=E4=B8=AA=E2=80=9C=E6=96=B0=E5=A2=9E=E2=80=9D=E8=AF=84=E5=AE=A1?=
=?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=8C=89=E9=92=AE,=E8=A7=A3=E5=86=B3?=
=?UTF-8?q?=EF=BC=9A=E5=B1=8F=E8=94=BD=E6=8E=89=E9=A1=B5=E9=9D=A2=E5=8F=B3?=
=?UTF-8?q?=E4=B8=8B=E8=A7=92=E9=82=A3=E4=B8=AA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/layouts/users_base.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/layouts/users_base.html.erb b/app/views/layouts/users_base.html.erb
index bad051fc5..97db13193 100644
--- a/app/views/layouts/users_base.html.erb
+++ b/app/views/layouts/users_base.html.erb
@@ -45,6 +45,6 @@
-<%= call_hook :view_layouts_base_body_bottom %>
+
|