summaryrefslogtreecommitdiff
path: root/app/views/pages/pricing.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2014-01-23 12:05:58 -0800
committerjessib <jessib@riseup.net>2014-01-23 12:05:58 -0800
commitd578c07e196cd9758fbf1752a9bb8477c260bb30 (patch)
tree4dcbef4b1b2ea9dcd52cf98f1bb98b371a93c631 /app/views/pages/pricing.html.haml
parent01941b7d930c581a6684f6b939b3ae2f62bd832e (diff)
parentce412a9a0ccce22b5b9d90f70369b91d5fc46e4f (diff)
Merge pull request #135 from elijh/feature/pages
add some static pages
Diffstat (limited to 'app/views/pages/pricing.html.haml')
-rw-r--r--app/views/pages/pricing.html.haml21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/pages/pricing.html.haml b/app/views/pages/pricing.html.haml
new file mode 100644
index 0000000..77699d8
--- /dev/null
+++ b/app/views/pages/pricing.html.haml
@@ -0,0 +1,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. \ No newline at end of file