dockerize faye and counters
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user