Restream/redmine_undev_git

View on GitHub
app/views/project_hooks/_global_hooks.html.erb

Summary

Maintainability
Test Coverage
<%= render partial: 'project_hooks/header' %>
<% hooks.each do |hook| %>
  <tr class="<%= cycle('odd', 'even') %>">
    <td></td>
    <td align="center"><%= hook_column_content(:branches, hook) %></td>
    <td align="center"><%= hook_column_content(:keywords, hook) %></td>
    <td align="center"><%= hook_column_content(:status, hook) %></td>
    <td align="center"><%= hook_column_content(:done_ratio, hook) %></td>
    <td align="center"><%= hook_column_content(:assignee, hook) %></td>
    <td align="left">
      <% hook.custom_field_values.each do |value| %>
        <% next if value.value_blank? %>
        <p><%= h(value.custom_field.name) %>:
          <span class="hook-field-value"><%= show_value(value) %></span>
        </p>
      <% end -%>
    </td>
    <td></td>
    <td></td>
  </tr>
<% end %>