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