Skip to content

Commit

Permalink
Added check of view_time_entries-permission in taskboard-tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
avbk committed Nov 21, 2014
1 parent c171804 commit 0c2b866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/rb_stories/_tooltip.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<b><%= I18n.t :field_category %></b>: <%=h tooltip.category %><br />
<b><%= I18n.t :story_points %></b>: <%=h story_points_or_empty(tooltip) %><br />
<b><%= I18n.t :story_estimation_hours %></b>: <%=h tooltip.estimated_hours %><br />
<b><%= I18n.t :story_spent_time %></b>: <%= tooltip.total_spent_hours.round(2) %><br />
<% if User.current.allowed_to?(:view_time_entries, @project) %><b><%= I18n.t :story_spent_time %></b>: <%= tooltip.total_spent_hours.round(2) %><br /><% end %>
<b><%= I18n.t :story_remaining_hours %></b>: <%=h remaining_hours_or_empty(tooltip) %><br />
<b><%= I18n.t :field_assigned_to %></b>: <%=h assignee_name_or_empty(tooltip) %><br />
<b><%= I18n.t :field_project %></b>: <%=h project_name_or_empty(tooltip) %><br />
Expand Down

0 comments on commit 0c2b866

Please sign in to comment.