Minor refactoring in stats partial.

This commit is contained in:
benni 2012-06-24 21:43:36 +02:00
parent 4b6499d529
commit f1b71a5588
2 changed files with 7 additions and 1 deletions

View file

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