diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-09-13 10:53:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-09-13 10:53:13 +0000 |
commit | e6761e30e514206ef2fb56faa6ce335e3d241b51 (patch) | |
tree | a52da58993ab82fc8f46abe3220b95084001ee75 /app/views/projects/_sidebar.html.erb | |
parent | bc7d39115fc517f479ce5b81a632c76450fa2241 (diff) | |
download | redmine-e6761e30e514206ef2fb56faa6ce335e3d241b51.tar.gz redmine-e6761e30e514206ef2fb56faa6ce335e3d241b51.zip |
Moves project sidebar content to a partial (#17380).
Patch by Jérôme BATAILLE.
git-svn-id: http://svn.redmine.org/redmine/trunk@13393 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/_sidebar.html.erb')
-rw-r--r-- | app/views/projects/_sidebar.html.erb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/views/projects/_sidebar.html.erb b/app/views/projects/_sidebar.html.erb new file mode 100644 index 000000000..0f5c24186 --- /dev/null +++ b/app/views/projects/_sidebar.html.erb @@ -0,0 +1,12 @@ +<% if @total_hours.present? %> + <h3><%= l(:label_spent_time) %></h3> + <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> + <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) %> |