From c718cb2144c60ca016f8f16f45fd5232af3f3452 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 21 Sep 2016 15:27:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=BB=BAissue=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AF=84=E5=AE=A1=EF=BC=8C=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=EF=BC=8C=E5=AE=9E=E9=99=85=E5=B7=A5=E6=97=B6=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/issues/_attributes.html.erb | 16 +++++++++++++++- app/views/issues/_form.html.erb | 4 ++++ config/locales/projects/zh.yml | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index 9dba6a6c8..80c8ad185 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -25,6 +25,14 @@
  • + + +
  • +
  • <% if @issue.safe_attribute? 'assigned_to_id' %> @@ -74,7 +82,13 @@ <% if @issue.safe_attribute? 'estimated_hours' %> <%= f.text_field :estimated_hours, :size => 22, :disabled => !@issue.leaf?, :no_label => true, :required => @issue.required_attribute?('estimated_hours') %> - <%= l(:field_hours) %> + <% end %> +
  • +
    +
  • + + <% if @issue.safe_attribute? 'estimated_hours' %> + <%= f.text_field :estimated_hours, :size => 22, :disabled => !@issue.leaf?, :no_label => true %> <% end %>
  • diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index 1be21cbc1..d58c4fb6f 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -18,6 +18,10 @@ <% end %> +
  • + + +
  • diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml index 906ae4243..2b63c45cf 100644 --- a/config/locales/projects/zh.yml +++ b/config/locales/projects/zh.yml @@ -232,7 +232,7 @@ zh: field_closed_on: 已关闭 field_start_date: 开始日期 field_due_date: 计划完成日期 - field_estimated_hours: 预期时间 + field_estimated_hours: 预计工时 (H) field_assigned_to: 指派给 field_priority: 优先级 field_done_ratio: "% 完成" From e6657ae42257ecb92705b7e8de5f9c5ec0796661 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 22 Sep 2016 17:39:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E7=94=98=E7=89=B9=E5=9B=BE=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- app/views/gantts/show.html.erb | 4 ++-- public/stylesheets/css/common.css | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d3b28fb20..92e96e84c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1799,7 +1799,7 @@ module ApplicationHelper end def link_to_function(name, function, html_options={}) - content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(:class => " c_purple")) + content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(:class => "BlueCirBtnMini ml10",:style => "display:inline-block; height:20px; line-height:20px;")) end # Helper to render JSON in views diff --git a/app/views/gantts/show.html.erb b/app/views/gantts/show.html.erb index b6b91eed0..0790b73f4 100644 --- a/app/views/gantts/show.html.erb +++ b/app/views/gantts/show.html.erb @@ -22,7 +22,7 @@
    <%= l(:label_related_issues) %> -