foodsoft/app/views/home/_apple_bar.html.haml

10 lines
471 B
Plaintext
Raw Normal View History

2013-02-04 00:46:22 +01:00
= t '.points', points: apple_bar.apples
.progress
%div{class: "bar bar-#{apple_bar.group_bar_state}", style: "width: #{apple_bar.group_bar_width}%"}
%span.description
2013-02-04 00:46:22 +01:00
= t '.desc', amount: number_to_currency(apple_bar.mean_order_amount_per_job, :precision=>0)
- if FoodsoftConfig[:stop_ordering_under].present?
%strong= t('.warning', threshold: FoodsoftConfig[:stop_ordering_under])
= link_to t('.more_info'), FoodsoftConfig[:applepear_url], target: '_blank'