Sha256: e67af547e6324f69765c0859691992eb7ed0d58eb2d40ea36c1669501ff29f6d
Contents?: true
Size: 788 Bytes
Versions: 3
Compression:
Stored size: 788 Bytes
Contents
= I18n.t "iugu.available_plans" %br %br %table %tr %th = I18n.t "iugu.plan" %th = "#{I18n.t("iugu.price")} (#{@currency})" %th - @plans.reverse.each do |plan| %tr %td = plan.name %td - price = plan.price_by_currency @currency = price.value_cents %td - if plan.identifier == @subscription.plan_identifier = I18n.t "iugu.your_plan" - else - text = "iugu.change_plan" - text = "iugu.upgrade" if price.value_cents > @subscription.price_cents - text = "iugu.downgrade" if price.value_cents < @subscription.price_cents = link_to(I18n.t(text), plan_change_url(id: @account.id.to_param, plan: plan.identifier), method: :post)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iugusdk-1.0.0.alpha.21 | app/views/iugu/plan/index.html.haml |
iugusdk-1.0.0.alpha.20 | app/views/iugu/plan/index.html.haml |
iugusdk-1.0.0.alpha.19 | app/views/iugu/plan/index.html.haml |