Minor refactoring in stats partial.
This commit is contained in:
parent
4b6499d529
commit
f1b71a5588
2 changed files with 7 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ unless global_avg == 0 or global_avg.nan?
|
|||
%>
|
||||
Engagement Deiner Bestellgruppe
|
||||
<div class="stats-bar" style="width:<%= length_of_group_bar -%>px; background-color:<%= color -%>">
|
||||
<%= ((group_avg / global_avg) * 100).to_i -%><%= " Äpfel" if length_of_group_bar > 50 -%>
|
||||
<%= @ordergroup.apples -%><%= " Äpfel" if length_of_group_bar > 50 -%>
|
||||
</div>
|
||||
Durchschnittsengagement
|
||||
<div class="stats-bar" style="width:<%= length_of_global_bar -%>px">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue