summaryrefslogtreecommitdiff
path: root/users/app/views/overviews/show.html.haml
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-08-27 12:38:16 -0700
committerjessib <jessib@riseup.net>2013-08-27 12:38:16 -0700
commit060e06daa065f02b811dfe12850b101a62c12c8d (patch)
tree8e1e4112371a50870afb9dfa01155116be879af3 /users/app/views/overviews/show.html.haml
parentdc41ae0a3fb0a137e716d8ec63084b0ec3a7299b (diff)
Not ideal way to do it, but was proving complicated to have a config file specify which gems for which environments.
Here, we have the billing gem included for the development and test environments only, hardcoded in the Gemfile. Then we show the links to billing based on a config file setting. The setting itself could be used to specify different types of billing, but isn't yet.
Diffstat (limited to 'users/app/views/overviews/show.html.haml')
-rw-r--r--users/app/views/overviews/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/views/overviews/show.html.haml b/users/app/views/overviews/show.html.haml
index e43a193..1cdcf02 100644
--- a/users/app/views/overviews/show.html.haml
+++ b/users/app/views/overviews/show.html.haml
@@ -19,4 +19,4 @@
%li= icon('user') + link_to(t(:overview_account), edit_user_path(@user))
%li= icon('envelope') + link_to(t(:overview_email), edit_user_email_settings_path(@user))
%li= icon('question-sign') + link_to(t(:overview_tickets), user_tickets_path(@user))
- %li= icon('shopping-cart') + link_to(t(:overview_billing), show_or_new_customer_link(@user)) if engine_enabled('LeapWebBilling')
+ %li= icon('shopping-cart') + link_to(t(:overview_billing), show_or_new_customer_link(@user)) if APP_CONFIG[:payment].present?