From e3a7d365ea6e4c6d8d6c969219ce7784ef4046b8 Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 29 Aug 2014 11:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E5=AE=A1=E4=BB=BB=E5=8A=A1=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=88=B0=E6=98=BE=E7=9C=BC=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/file.html.erb | 5 +++-- config/locales/en.yml | 3 ++- config/locales/zh.yml | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/attachments/file.html.erb b/app/views/attachments/file.html.erb index 186b85c69..6c23c638f 100644 --- a/app/views/attachments/file.html.erb +++ b/app/views/attachments/file.html.erb @@ -6,8 +6,9 @@

<%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%> (<%= number_to_human_size @attachment.filesize %>)    - <% if @attachment!=nil&&@attachment.container_type == 'Document'&&User.current.allowed_to?({:controller => 'code_review', :action => 'update_diff_view'}, @attachment.project) %> - <%= link = link_to(l(:button_add), {:controller => 'code_review', + + <% if @attachment!=nil&&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, :change_id => '', :attachment_id => @attachment.id, diff --git a/config/locales/en.yml b/config/locales/en.yml index ddae72799..89898409e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1808,4 +1808,5 @@ 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 \ No newline at end of file + lable_score_less_than_zero: Score less than 0, revised to 0 + review_assignments: review assignments \ No newline at end of file diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 2fb7ef2bf..224190060 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -2116,4 +2116,5 @@ zh: lable_forums_max_length: 贴吧描述最大长度为65535个字符 lable_unknow_type: 未知类型 lable_score_less_than_zero: 得分小于0,修正为0 + review_assignments: 评审任务 \ No newline at end of file