translations
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -34,6 +34,10 @@ class List
|
||||
list
|
||||
end
|
||||
|
||||
def self.of_user(user, options = {})
|
||||
database.view(association_list_has_and_belongs_to_many_users({startkey: [user.id], endkey: ["#{user.id}\u9999"], include_docs: true, reduce: false}.merge(options)))
|
||||
end
|
||||
|
||||
def close!
|
||||
orders.map(&:close!)
|
||||
self.state = 'closed'
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
ul.nav.nav-tabs.nav-stacked
|
||||
li
|
||||
button.btn.btn-primary onClick="QMobile.scanQr()" Scan Qr
|
||||
button.btn.btn-primary onClick="QMobile.scanQr()" = t('user.home.scan_qr')
|
||||
- if list_open?
|
||||
li= link_to 'Place order', user_list_products_path
|
||||
li= link_to 'Show active list', user_active_list_path
|
||||
li= link_to 'Subscribe to list', '#'
|
||||
li= link_to t('user.home.show_active_list_products'), user_list_products_path
|
||||
li= link_to t('user.home.show_active_list'), user_active_list_path
|
||||
|
||||
Reference in New Issue
Block a user