<% if @project.module_enabled? :costs_module %> <%# Only render this partial, if the plugin is enabled for the current project %> <% attributes_array = cost_issues_attributes %> <% (0..(attributes_array.size - 1)).step(2) do |i| %> <%= attributes_array[i].first %>: <%= attributes_array[i].last %> <% if i + 1 < attributes_array.size %> <%= attributes_array[i + 1].first %>: <%= attributes_array[i + 1].last %> <% end %> <% end %> <% end %>