summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/subscriptions/index.html.haml
blob: 70fbf8d89edda4b6a6dec73f7b9cf1a0c1a76726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%h2.mbs
  = t(:subscriptions)
%h4{ :style => "line-height: 300%;" }
  .last
    = t(:lastestsubs)
  - if @user.subscription_id
    %ul
      - @subscription.transactions.each do |transaction|
        %li
          %p{ :style => "font-size: 14px; font-weight: normal;" }
            #{t(:date)} #{transaction.created_at}
    %ul
      = link_to "#{t(:unsubscribe_from)} #{@plan.name}", unsubscribe_subscription_path(@subscription.plan_id), method: :delete, class: "btn btn-danger"
      %br
  - else
    %p{ :style => "font-size: 14px; font-weight: normal;"}
      =t(:no_subs)
    %h4
      =t(:choose_subs)
    %br
    %ul.nav.nav-tabs.nav-stacked
      - @subscriptions.each do |subscription|
        .well
          = subscription.name
          = "$" + subscription.price.to_s
          %div{ :style => "line-height: 300%;" }
            = link_to t(:choose_button), subscription_path(subscription.id), class: "btn btn-info"