评审任务移动到显眼位置

This commit is contained in:
z9hang 2014-08-29 11:21:45 +08:00
parent 3919d0fd48
commit e3a7d365ea
3 changed files with 6 additions and 3 deletions

View File

@ -6,8 +6,9 @@
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
<span class="size">(<%= number_to_human_size @attachment.filesize %>)</span>&nbsp&nbsp&nbsp
<span class="size">
<% 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',
<!-- &&(@attachment.container_type == 'Document' || @attachment.container_type == 'WikiPage') -->
<% 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,

View File

@ -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
lable_score_less_than_zero: Score less than 0, revised to 0
review_assignments: review assignments

View File

@ -2116,4 +2116,5 @@ zh:
lable_forums_max_length: 贴吧描述最大长度为65535个字符
lable_unknow_type: 未知类型
lable_score_less_than_zero: 得分小于0修正为0
review_assignments: 评审任务