Only show numerical scores if environment variable SCORES=SHOW

pull/1/head
Nelson Jovel 4 years ago
parent 8450a715e7
commit 9c5e7554f1

@ -1,5 +1,7 @@
<div class="d-flex flex-column align-items-center position-relative">
<p>Score is : <%=gauge.score %> </p>
<% if ENV["SCORES"].present? && ENV["SCORES"].upcase == "SHOW" %>
<p>Score is : <%=gauge.score %> </p>
<% end %>
<svg
viewBox="<%= viewbox.x %> <%= viewbox.y %> <%= viewbox.width %> <%= viewbox.height %>"

Loading…
Cancel
Save