Commit f8a3cd6d authored by emilie's avatar emilie

readability

parent 8a92e6a6
......@@ -25,11 +25,16 @@
<% end %>
<% if performance_indicator.sisense_data %>
<b>Chart</b><% if performance_indicator.sisense_data.shared_dashboard%>(<a href="https://app.periscopedata.com/shared/<%= performance_indicator.sisense_data.shared_dashboard %>">Sisense↗</a>)<% elsif performance_indicator.sisense_data.chart && performance_indicator.sisense_data.dashboard%> (<a href="https://app.periscopedata.com/app/gitlab/<%= performance_indicator.sisense_data.dashboard %>/?widget=<%= performance_indicator.sisense_data.chart %>">Sisense↗</a>)<% end %>
<b>Chart</b>
<% if performance_indicator.sisense_data.shared_dashboard%>
(<a href="https://app.periscopedata.com/shared/<%= performance_indicator.sisense_data.shared_dashboard %>">Sisense↗</a>)
<% elsif performance_indicator.sisense_data.chart && performance_indicator.sisense_data.dashboard%>
(<a href="https://app.periscopedata.com/app/gitlab/<%= performance_indicator.sisense_data.dashboard %>/?widget=<%= performance_indicator.sisense_data.chart %>">Sisense↗</a>)
<% end %>
<% if ENV['PERISCOPE_EMBED_API_KEY'] %>
<embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.sisense_data) %>">
<embed width="100%" height="100%" style="min-height:300px;" src="<%= signed_periscope_url(performance_indicator.sisense_data) %>">
<% else %>
<p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
<p>You must set a <code>PERISCOPE_EMBED_API_KEY</code> environment variable to render this chart.</p>
<% end %>
<% 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