 ResourceMachineItem    = require './resourcemachineitem'
 ResourceMachineHeader  = require './resourcemachineheader'
 MachinesListController = require 'app/environment/machineslistcontroller'
+StackAdminMessageModal = require 'app/stacks/stackadminmessagemodal'
 
 
 module.exports = class ResourceListItem extends kd.ListItemView

        delegate.emit 'ReloadItems'  unless showError err


  toggleDetails: ->

    @details.toggleClass  'hidden'

      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
