- $gateGroup = new GateGroupPresenter($gateGroup)
%script{:type => "text/javascript"}
  updateGateCssClass("#{$gateGroup->ID}", "#{$gateGroup->getStatusClass()}")
- $gates = $gateGroup->gates
- foreach($gates as $gate)
  - $gate = new GatePresenter($gate)
  - $this->renderPartial('gates/_gateBox', array('gate' => $gate, 'gateGroup' => $gateGroup, 'viewMode' => $viewMode))

