app/views/iugu/plan/index.html.haml in iugusdk-1.0.1 vs app/views/iugu/plan/index.html.haml in iugusdk-1.0.2

- old
+ new

@@ -2,14 +2,14 @@ .notice.notice-red{ :style => "margin-bottom: 15px" } %ul - @account.errors.full_messages.each do |msg| %li = msg -%h3 +%h1 = I18n.t "iugu.available_plans" -%table +%table.table %tr %th = I18n.t "iugu.plan" %th = "#{I18n.t("iugu.price")} (#{@currency})" @@ -31,8 +31,8 @@ = 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, :class => "button no-bottom-margin") + = link_to(I18n.t(text), plan_change_url(id: @account.id.to_param, plan: plan.identifier), method: :post, :class => "btn btn-primary btn-block") -= link_to I18n.t("iugu.back"), account_view_path(id: params[:id]), class: "button no-bottom-margin" += link_to I18n.t("iugu.back"), account_view_path(id: params[:id]), class: "btn btn-primary btn-block"