OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/hooks/_view_issues_show_details_b...

26 lines
804 B

<% if @project.module_enabled? :costs_module %>
<%# Only render this partial, if the plugin is enabled for the current project %>
<style>
<%# disables core's spent-time as it is not displayed if the user has just the view_own_time_entries permission %>
.spent-time { display: none }
</style>
<% attributes_array = cost_issues_attributes %>
<% (0..(attributes_array.size - 1)).step(2) do |i| %>
<tr>
<td>
<b><%= attributes_array[i].first %>:</b>
</td>
<td>
<%= attributes_array[i].last %>
</td>
<% if i + 1 < attributes_array.size %>
<td>
<b><%= attributes_array[i + 1].first %>:</b>
</td>
<td>
<%= attributes_array[i + 1].last %>
</td>
<% end %>
</tr>
<% end %>
<% end %>