Merge pull request #72 from finnlabs/fix/accessibility_work_package_attribute_list_2258
[FIX] Accessibility work package attribute list 2258pull/6827/head
commit
ecfd329cda
@ -1,27 +0,0 @@ |
|||||||
<% if @project.module_enabled?(:costs_module) && issue %> |
|
||||||
<%# 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_work_package_attributes(issue) %> |
|
||||||
<% (0..(attributes_array.size - 1)).step(2) do |i| %> |
|
||||||
<tr> |
|
||||||
<th> |
|
||||||
<%= attributes_array[i].first %>: |
|
||||||
</th> |
|
||||||
<td> |
|
||||||
<%= attributes_array[i].to_a.last %> |
|
||||||
</td> |
|
||||||
<% if i + 1 < attributes_array.size %> |
|
||||||
<th> |
|
||||||
<%= attributes_array[i + 1].first %>: |
|
||||||
</th> |
|
||||||
<td> |
|
||||||
<%= attributes_array[i + 1].to_a.last %> |
|
||||||
</td> |
|
||||||
<% end %> |
|
||||||
</tr> |
|
||||||
<% end %> |
|
||||||
<% end %> |
|
Loading…
Reference in new issue