Commit cf135c4e authored by Eric Johnson's avatar Eric Johnson

Collapsing next steps into health reasons

parent 27078a96
This diff is collapsed.
......@@ -25,14 +25,11 @@
<% end %>
<b>Health: <%= color_code_health(performance_indicator.health.level) %></b>
<p><%= performance_indicator.health.reason %></p>
<b>Maturity: <%= color_code_maturity(performance_indicator.maturity.level) %></b>
<p><%= performance_indicator.maturity.reason %></p>
<b>Next Steps</b>
<ul>
<% performance_indicator.next_steps.each do |next_step| %>
<li><%= next_step %></li>
<% performance_indicator.health.reasons.each do |reason| %>
<li><%= reason %></li>
<% end %>
</ul>
<b>Maturity: <%= color_code_maturity(performance_indicator.maturity.level) %></b>
<p><%= performance_indicator.maturity.reason %></p>
\ No newline at end of file
......@@ -5,16 +5,14 @@
<tr>
<td>KPI</td>
<td>Health</td>
<td>Reason</td>
<td>Next Steps</td>
<td>Reason(s)</td>
</tr>
<% key_performance_indicators.each do |kpi| %>
<tr>
<td><a href="#<%= kpi.name.parameterize %>"><%= kpi.name %></a></td>
<td><%= color_code_health kpi.health.level %></td>
<td><%= kpi.health.reason %></td>
<td><% kpi.next_steps.each do |next_step| %>
<li><%= next_step %></li>
<td><% kpi.health.reasons.each do |reason| %>
<li><%= reason %></li>
<% end %></td>
</tr>
<% end %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment