translations

This commit is contained in:
2012-08-31 12:02:41 +02:00
parent 9fdb02af2a
commit 9fd35784ee
7 changed files with 25 additions and 5 deletions
BIN
View File
Binary file not shown.
+4
View File
@@ -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'
+3 -4
View File
@@ -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