summaryrefslogtreecommitdiff
path: root/app/views/pages/pricing.html.haml
blob: 77699d81d8de5dcbe2446ef0f122959f69c09f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%h1= t(:pricing)
%p= link_to(icon('user') + t(:signup), signup_path, :class => 'btn')

- levels = APP_CONFIG[:service_levels]
- if levels
  %table.table.table-striped.table-bordered
    %tr
      %th= t :plan
      %th= t :description
      %th= t :monthly_cost
    - levels.each do |id, level|
      %tr
        %td= level[:name]
        %td= level[:description]
        %td
          - if level[:cost].nil? || level[:cost] == 0
            = t(:free)
          - else
            = level[:cost].map{|currency,cost| "#{cost} #{currency}"}.join(', ')
- else
  No service levels are configured.