summaryrefslogtreecommitdiffstats
path: root/app/views/projects/show.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-26 17:05:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-26 17:05:02 +0000
commit6c9401b6242a75044a60a250549b0d4ad8dd9264 (patch)
tree3e89f5e916223936ee89e67bbaf8e9afdbba7638 /app/views/projects/show.html.erb
parentf9f5e9e7c6c601aea66d1e15c818e1fae8bae81f (diff)
downloadredmine-6c9401b6242a75044a60a250549b0d4ad8dd9264.tar.gz
redmine-6c9401b6242a75044a60a250549b0d4ad8dd9264.zip
Additional "Log time" link on project overview (#11181).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9897 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/show.html.erb')
-rw-r--r--app/views/projects/show.html.erb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index 7bd37fc7b..3317594ae 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -82,7 +82,11 @@
<% if @total_hours.present? %>
<h3><%= l(:label_spent_time) %></h3>
<p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
- <p><%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
+ <p>
+ <% 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)) %></p>
<% end %>
<%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>