           ship = _ships[shipId]
           shipInfo = $ships[ship.api_ship_id]
           shipType = $shipTypes[shipInfo.api_stype].api_name
-
           <div className="ship-tile">
             <OverlayTrigger placement="top" overlay={
               <Popover className="ship-pop">

    switch path
      when '/kcsapi/api_port/port'
        updateflag = true
      when '/kcsapi/api_req_hensei/change'
        updateflag = true
      when '/kcsapi/api_req_nyukyo/start'
        shipId = parseInt postBody.api_ship_id
        if shipId in @props.deck.api_ship
          i = @props.deck.api_ship.indexOf shipId
          # status = getStatusArray shipId
          label[i][1] = true
          updateflag = true
    if updateflag
      label = @updateLabels()
      @setState
        label: label
  shouldComponentUpdate: (nextProps, nextState) ->

  condDynamicUpdateFlag: false
  getInitialState: ->
    cond: [0, 0, 0, 0, 0, 0]
    label: [-1, -1, -1, -1, -1, -1]
  updateLabels: ->
    # refresh label
    {label} = @state
    for shipId, j in @props.deck.api_ship
      continue if shipId == -1
      ship = _ships[shipId]
      status = getShipStatus shipId
      label[j] = status
    label
  onCondChange: (cond) ->
