_performance_indicator.erb 1.08 KB
Newer Older
Eric Johnson's avatar
Eric Johnson committed
1 2 3 4
<h3 id="<%= performance_indicator.name.parameterize %>"><%= performance_indicator.name %></h3>

<p><%= performance_indicator.description %></p>

5 6 7 8 9 10 11 12 13
<% if performance_indicator.urls %>
  <b>URL(s)</b>
  <ul>
  <% performance_indicator.urls.each do |url| %>
    <li><a href="<%= url %>"><%= url %></a></li>
  <% end %>
  </ul>
<% end %>

14 15 16
<% if performance_indicator.periscope_data %>
  <b>Periscope chart</b>
  <% if ENV['PERISCOPE_EMBED_API_KEY'] %>
17
  <embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.periscope_data) %>">
18 19
  <% else %>
  <p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
20
  <% end %>
21 22
<% end %>

Eric Johnson's avatar
Eric Johnson committed
23 24 25 26 27 28 29 30 31 32 33 34
<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>
<% end %>
</ul>