diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 7bd37fc..3317594 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -82,7 +82,11 @@ <% if @total_hours.present? %>
<%= l_hours(@total_hours) %>
-<%= link_to(l(:label_details), project_time_entries_path(@project)) %> | +
+ <% if User.current.allowed_to?(:log_time, @project) %> + <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> | + <% end %> + <%= link_to(l(:label_details), project_time_entries_path(@project)) %> | <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %>
<% end %> <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>