Only show numerical scores if environment variable SCORES=SHOW

This commit is contained in:
Nelson Jovel 2022-05-02 15:27:03 -07:00
parent 8450a715e7
commit 9c5e7554f1

View file

@ -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 %>"