         delegate.emit 'ReloadItems'  unless showError err
 
 
+  handleAdminMessage: ->
+
+    new StackAdminMessageModal {}, {
+      stacks : [ @getData() ]
+      type   : 'info'
+    }
+
+
   toggleDetails: ->
 
     @details.toggleClass  'hidden'

ResourceMachineItem    = require './resourcemachineitem'
ResourceMachineHeader  = require './resourcemachineheader'
MachinesListController = require 'app/environment/machineslistcontroller'


module.exports = class ResourceListItem extends kd.ListItemView

      cssClass : 'solid small red fr'
      callback : @bound 'handleDelete'

    @details.addSubView new kd.ButtonView
      title    : 'Admin Message'
      cssClass : 'solid small green fr'
      callback : @bound 'handleAdminMessage'

    @ownerView = new AvatarView {
      size: { width: 25, height: 25 }
    }, resource.owner
