dockerize faye and counters

This commit is contained in:
2015-02-10 15:44:46 +01:00
parent cab883b3ce
commit 461bbdb3ec
15 changed files with 388 additions and 26 deletions
@@ -21,6 +21,7 @@ App.ApplicationController = Ember.Controller.extend
@set 'notice', ''
).observes('currentPath')
events:
notify: (notification) -> @set 'notice', notification.message
list_helped: -> @set 'list.needs_help', false
list_needs_help: -> @set 'list.needs_help', true # incoming from other users
list_is_paid: -> @set 'list.needs_payment', false
+5 -1
View File
@@ -1,4 +1,4 @@
class DashboardController < ApplicationController
class DashboardController < ApplicationController
layout 'theme1'
before_action :allow_all_origins, only: :error_report
@@ -13,6 +13,10 @@
render nothing: true
end
def scan
end
def close_window
render layout: false
end
+8
View File
@@ -52,6 +52,14 @@ class List
}
}], reduce_function: '_sum'
view :active_users_view, type: :custom, map_function: %[function(doc){
if(doc.ruby_class == 'List' && doc.state == 'active'){
doc.user_ids && doc.user_ids.forEach(function(uid){
emit([doc.supplier_id, uid], 1);
})
}
}], reduce_function: '_sum'
view :for_user_view, type: :custom, map_function: %|function(doc){
if(doc.ruby_class == 'List' && doc.user_ids && doc.user_ids.length){
doc.user_ids.forEach(function(uid){