Hide the labor budget from users without permission
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<%= content_tag(:td, deliverable.id) %>
|
||||
<%= content_tag(:td, h(deliverable.score.to_i), :class => 'score') if allowed_management? %>
|
||||
<%= content_tag(:td, h(deliverable.subject), :class => 'subject') %>
|
||||
<%= content_tag(:td, number_to_currency(deliverable.labor_budget || 0.0, :precision => 0), :class => 'budget') %>
|
||||
<%= content_tag(:td, number_to_currency(deliverable.labor_budget || 0.0, :precision => 0), :class => 'budget') if allowed_management? %>
|
||||
<%= content_tag(:td, number_to_currency(deliverable.spent, :precision => 0), :class => 'spent') if allowed_management? %>
|
||||
<%= content_tag(:td, format_date(deliverable.due), :class => 'due_date') %>
|
||||
<%= content_tag(:td, progress_bar(deliverable.progress, :width => '100%', :class => 'dont_ratio')) %>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<%= sort_header_tag("#{Deliverable.table_name}.id", :caption => '#', :default_order => 'desc') %>
|
||||
<%= sort_header_tag("score", :caption => 'Score', :default_order => 'desc') if allowed_management? %>
|
||||
<%= sort_header_tag("#{Deliverable.table_name}.subject", :caption => 'Subject') %>
|
||||
<%= sort_header_tag("labor_budget", :caption => 'Budget') %>
|
||||
<%= sort_header_tag("labor_budget", :caption => 'Budget') if allowed_management? %>
|
||||
<%= sort_header_tag("spent", :caption => 'Spent') if allowed_management? %>
|
||||
<%= sort_header_tag("#{Deliverable.table_name}.due", :caption => 'Due') %>
|
||||
<%= sort_header_tag("progress", :caption => 'Progress') %>
|
||||
|
||||
Reference in New Issue
Block a user