       {@renderMachineDetails()}
     </div>
 
+
 MachinesListItem.include [KDReactorMixin]

kd = require 'kd'
React = require 'app/react'
MachineDetails = require './machinedetails'
immutable = require 'immutable'
KDReactorMixin = require 'app/flux/base/reactormixin'
EnvironmentFlux = require 'app/flux/environment'
module.exports = class MachinesListItem extends React.Component

  @propTypes =
    machine                : React.PropTypes.instanceOf(immutable.Map).isRequired
    stack                  : React.PropTypes.instanceOf(immutable.Map).isRequired
    shouldRenderDetails    : React.PropTypes.bool
    shouldRenderSpecs      : React.PropTypes.bool
    shouldRenderPower      : React.PropTypes.bool

  renderMachineDetails: ->

    return null  unless @props.shouldRenderDetails
    return null  unless @props.machine.getId() is @state.activeMachine

    <main className="MachinesListItem-machineDetails">
      <MachineDetails
        machine={@props.machine}
