Make sharedlists optional (and disabled by default)

This commit is contained in:
wvengen 2015-07-20 22:33:28 +02:00
parent 49f2e505d0
commit 58df186a2a
2 changed files with 14 additions and 10 deletions

View file

@ -2,6 +2,7 @@
- content_for :actionbar do - content_for :actionbar do
= link_to t('.action_new'), new_supplier_path, class: 'btn btn-primary' = link_to t('.action_new'), new_supplier_path, class: 'btn btn-primary'
- if FoodsoftConfig[:shared_lists]
= link_to t('.action_import'), shared_suppliers_suppliers_path, class: 'btn' = link_to t('.action_import'), shared_suppliers_suppliers_path, class: 'btn'
%table.table.table-striped %table.table.table-striped
%thead %thead

View file

@ -132,15 +132,18 @@ default: &defaults
#host: localhost #host: localhost
#port: 3000 #port: 3000
# Access to sharedLists, the external article-database # Access to sharedlists, the external article-database.
shared_lists: # This allows a foodcoop to subscribe to a selection of a supplier's full assortment,
adapter: mysql2 # and makes it possible to share data with several foodcoops. Using this requires installing
host: localhost # an additional application with a separate database.
database: sharedlists_development #shared_lists:
username: root # adapter: mysql2
password: # host: localhost
encoding: utf8 # database: sharedlists_development
socket: /opt/lampp/var/mysql/mysql.sock # username: root
# password:
# encoding: utf8
# socket: /opt/lampp/var/mysql/mysql.sock
development: development:
<<: *defaults <<: *defaults