summaryrefslogtreecommitdiff
path: root/app/views/layouts
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 /app/views/layouts
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 'app/views/layouts')
-rw-r--r--app/views/layouts/_navigation.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_navigation.html.haml b/app/views/layouts/_navigation.html.haml
index fb018a9..053c62c 100644
--- a/app/views/layouts/_navigation.html.haml
+++ b/app/views/layouts/_navigation.html.haml
@@ -2,5 +2,5 @@
= link_to_navigation t(:overview), user_overview_path(@user), :active => controller?(:overviews)
= link_to_navigation t(:account_settings), edit_user_path(@user), :active => controller?(:users)
= link_to_navigation t(:support_tickets), auto_tickets_path, :active => controller?(:tickets)
- = link_to_navigation t(:billing_settings), show_or_new_customer_link(@user), :active => controller?(:customer, :payments, :subscriptions, :credit_card_info) if engine_enabled('LeapWebBilling')
+ = link_to_navigation t(:billing_settings), show_or_new_customer_link(@user), :active => controller?(:customer, :payments, :subscriptions, :credit_card_info) if APP_CONFIG[:payment].present?
= link_to_navigation t(:logout), logout_path, :method => :delete