Skip to content

Commit

Permalink
Update number formatting in _stat.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jan 17, 2024
1 parent ed58a28 commit 2a91e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/collectives/_stat.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

<span class='info' title='<%= title %> in the past <%= @period %> days'><%= octicon 'info', height: 14 %></span>
<h3>
<%= number_to_human this_period %>
<%= this_period %>

<% diff = this_period - last_period %>
<% unless diff.zero? %>
<small class='<%= diff_class(diff*positive_diff_change) %>' title='<%= last_period %> <%= title %> in the previous <%= @period %> days'><%= '+' if diff > 0 %><%= number_to_human diff %></small>
<small class='<%= diff_class(diff*positive_diff_change) %>' title='<%= last_period %> <%= title %> in the previous <%= @period %> days'><%= '+' if diff > 0 %><%= diff %></small>
<% end %>
</h3>
<span><%= title %></span>
Expand Down

0 comments on commit 2a91e13

Please sign in to comment.