From be75bcef473dbb99d59829019bc31719dd98bd94 Mon Sep 17 00:00:00 2001 From: whimlex Date: Fri, 13 Mar 2015 11:51:53 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BE=97=E5=88=86?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/locales/projects/en.yml | 24 ++++++++++++------------ config/locales/projects/zh.yml | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/config/locales/projects/en.yml b/config/locales/projects/en.yml index 1fda000ff..fdc426ca5 100644 --- a/config/locales/projects/en.yml +++ b/config/locales/projects/en.yml @@ -131,23 +131,23 @@ en: # # 项目得分 # - label_projects_score: 项目综合得分 + label_projects_score: Project Total Score - label_issue_score: issue得分 - label_issue_number: issue的数量 - label_issue_journal_number: issue的留言数量 + label_issue_score: Issue Score + label_issue_number: issues + label_issue_journal_number: messages of issue - label_news_score: 新闻得分 - label_new_number: 新闻的数量 + label_news_score: News Score + label_new_number: news - label_file_score: 文档得分 - label_file_number: 文档的数量 + label_file_score: Document Scores + label_file_number: documents - label_code_submit_score: 代码提交得分 - label_code_submit_number: 代码提交数量 + label_code_submit_score: Code Commit Score + label_code_submit_number: commit code frequency - label_topic_score: 讨论区得分 - label_topic_number: 讨论区帖子数量 + label_topic_score: Forum Score + label_topic_number: posts diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml index 29cf540f8..b0a122dd1 100644 --- a/config/locales/projects/zh.yml +++ b/config/locales/projects/zh.yml @@ -146,7 +146,7 @@ zh: label_file_number: 文档的数量 label_code_submit_score: 代码提交得分 - label_code_submit_number: 代码提交数量 + label_code_submit_number: 代码提交频率 label_topic_score: 讨论区得分 label_topic_number: 讨论区帖子数量 From ed674d960c2a0fa934a5b9d6e43a627495e91eaf Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 13 Mar 2015 11:55:57 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/courses_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/courses_service.rb b/app/services/courses_service.rb index c9ea1ca80..2cfbc550b 100644 --- a/app/services/courses_service.rb +++ b/app/services/courses_service.rb @@ -381,7 +381,7 @@ class CoursesService end latest_bid_message = messages.first unless latest_bid_message.nil? - latest_course_dynamics << {:type => 4,:time => latest_bid_message.created_on,:message => '最近更新了作业'}#l(:label_recently_updated_message,:locale => current_user.language.nil? ? 'zh':current_user.language)} + latest_course_dynamics << {:type => 4,:time => latest_bid_message.created_on,:message => l(:label_recently_updated_message,:locale => current_user.language.nil? ? 'zh':current_user.language)} end #每个作业中学生最后提交的作业 homeworks = [] @@ -396,7 +396,7 @@ class CoursesService end latest_homework_attach = homeworks.first unless latest_homework_attach.nil? - latest_course_dynamics << {:type => 4,:time => latest_homework_attach.updated_at,:message => '最近更新了作业'}#l(:label_recently_updated_homework,:locale => current_user.language.nil? ? 'zh':current_user.language)} + latest_course_dynamics << {:type => 4,:time => latest_homework_attach.updated_at,:message => l(:label_recently_updated_homework,:locale => current_user.language.nil? ? 'zh':current_user.language)} end latest_course_dynamics.sort!{|order,newer| newer[:time] <=> order[:time]} latest_course_dynamic = latest_course_dynamics.first From e165dd6572774f243c60a1cdff6da1750ebb33c9 Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 13 Mar 2015 13:41:26 +0800 Subject: [PATCH 03/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/courses_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/courses_service.rb b/app/services/courses_service.rb index 2cfbc550b..1ec8a0ef0 100644 --- a/app/services/courses_service.rb +++ b/app/services/courses_service.rb @@ -1,3 +1,4 @@ +#coding=utf-8 class CoursesService include ApplicationHelper include CoursesHelper From a010c800d6b610892c085005a80fb6f2301e73ea Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 13 Mar 2015 15:37:54 +0800 Subject: [PATCH 04/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=BA=93=E4=B8=BA=E7=A9=BA=E6=83=85=E5=86=B5=E4=B8=8B403?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=A0=B7=E5=BC=8F=20=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E5=8F=91=E9=80=81=E5=9B=BD=E9=99=85=E5=8C=96=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=B0=8F=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_projects.html.erb | 12 +++++------- config/locales/zh.yml | 2 +- public/images/jiantou1.jpg | Bin 0 -> 1308 bytes public/stylesheets/application.css | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 public/images/jiantou1.jpg diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 23f0be5e6..8a731668c 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -101,8 +101,8 @@
-
- <%= link_to @project.name, project_path(@project) %> +
+ <%= link_to @project.name, project_path(@project), :style => "color:#3E4040"%> <% if !@project.is_public? %> <%= l(:label_private)%> <% end %> @@ -177,12 +177,10 @@ <% end %>
<% end%> - <% unless @project.enabled_modules.where("name = 'repository'").empty? %> + <% unless @project.enabled_modules.where("name = 'repository'").empty? || @project.repositories.count == 0 %> - <% end %> - <% else %> - -     - <%= l(:label_tags_no) %> - + <% end %> <% end %> <% end %> \ No newline at end of file From aa8d1741f99c8c751f8b8d7578c941381e19a75d Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 13 Mar 2015 15:46:00 +0800 Subject: [PATCH 07/13] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=8F=91=E9=80=81=E9=82=AE=E7=AE=B1=E6=97=B6=E7=9A=84=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/invite_members_by_mail.html.erb | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/app/views/projects/invite_members_by_mail.html.erb b/app/views/projects/invite_members_by_mail.html.erb index e8e77be8f..63f69e120 100644 --- a/app/views/projects/invite_members_by_mail.html.erb +++ b/app/views/projects/invite_members_by_mail.html.erb @@ -1,14 +1,28 @@