Feature #17380 » RM_17380_project_show_add_a_sidebar_partial_RM_V2.5.diff
| app/views/projects/show.html.erb (copie de travail) | ||
|---|---|---|
|
</div>
|
||
|
<% content_for :sidebar do %>
|
||
|
<% 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) %>
|
||
|
<%= render :partial => 'projects/sidebar' %>
|
||
|
<% end %>
|
||
|
<% content_for :header_tags do %>
|
||
| app/views/projects/_sidebar.html.erb (copie de travail) | ||
|---|---|---|
|
<% 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) %>
|
||