Added a few plugin hooks for Deliverables
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
<%= content_tag(:td, number_to_currency(deliverable.spent, :precision => 0), :class => 'spent') if allowed_management? %>
|
<%= content_tag(:td, number_to_currency(deliverable.spent, :precision => 0), :class => 'spent') if allowed_management? %>
|
||||||
<%= content_tag(:td, format_date(deliverable.due), :class => 'due_date') %>
|
<%= content_tag(:td, format_date(deliverable.due), :class => 'due_date') %>
|
||||||
<%= content_tag(:td, progress_bar(deliverable.progress, :width => '100%', :class => 'done_ratio')) %>
|
<%= content_tag(:td, progress_bar(deliverable.progress, :width => '100%', :class => 'done_ratio')) %>
|
||||||
|
<%= Redmine::Hook.call_hook(:plugin_budget_view_deliverable_summary_row, { :deliverable => deliverable }) %>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="deliverable-details-<%= deliverable.id %>" class="deliverable deliverable-details <%= css %>" style="display:none;">
|
<tr id="deliverable-details-<%= deliverable.id %>" class="deliverable deliverable-details <%= css %>" style="display:none;">
|
||||||
<td class="deliverable-actions">
|
<td class="deliverable-actions">
|
||||||
@@ -76,9 +77,11 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
<%= Redmine::Hook.call_hook(:plugin_budget_view_deliverable_details_row, { :deliverable => deliverable }) %>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="deliverable-description-<%= deliverable.id %>" class="deliverable deliverable-details <%= css %>" style="display:none;">
|
<tr id="deliverable-description-<%= deliverable.id %>" class="deliverable deliverable-details <%= css %>" style="display:none;">
|
||||||
<td colspan="9" style="text-align: left;">
|
<td colspan="9" style="text-align: left;">
|
||||||
<%= l(:field_description) %>: <%= textilizable deliverable.description %>
|
<%= l(:field_description) %>: <%= textilizable deliverable.description %>
|
||||||
</td>
|
</td>
|
||||||
|
<%= Redmine::Hook.call_hook(:plugin_budget_view_deliverable_description_row, { :deliverable => deliverable }) %>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<%= sort_header_tag("spent", :caption => l(:caption_spent)) if allowed_management? %>
|
<%= sort_header_tag("spent", :caption => l(:caption_spent)) if allowed_management? %>
|
||||||
<%= sort_header_tag("#{Deliverable.table_name}.due", :caption => l(:caption_due)) %>
|
<%= sort_header_tag("#{Deliverable.table_name}.due", :caption => l(:caption_due)) %>
|
||||||
<%= sort_header_tag("progress", :caption => l(:caption_progress)) %>
|
<%= sort_header_tag("progress", :caption => l(:caption_progress)) %>
|
||||||
|
<%= Redmine::Hook.call_hook(:plugin_budget_view_deliverable_list_header, { }) %>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% deliverables.each do |deliverable| -%>
|
<% deliverables.each do |deliverable| -%>
|
||||||
|
|||||||
Reference in New Issue
Block a user