- $lineColor = $alert->backGroundColor
- $signList = $alert->speedLimitSignList;

%tr(id="eventreporting-#{$alert->id}" style="background-color:##{((isset($lineColor))? $lineColor:'') }")
  - $this->renderPartial('/shared/_alertGenericColumns', array('alert' => $alert, 'signList' => $signList))
  %td
    - if(user()->checkAccess('alert_take_charge'))
      - if($alert->isNew())
        %button.take-charge.btn.btn-mini(type="button" data-eventreporting-id="#{$alert->id}" data-confirm-text="#{t('Confirm?')}")
          = t('Take Charge')
      - else if($alert->isTakenInCharge())
        %button.manage.btn.btn-mini(type="button" data-eventreporting-id="#{$alert->id}" data-confirm-text="#{t('Confirm?')}")
          = t('Close')
      - else if($alert->isManaged())
        = t('Closed')
  %td
    %a.btn.btn-mini(data-event-reporting-id="#{$alert->id}" href="#{Yii::app()->createUrl("alert/view", array('id' => $alert->id))}" target="_blank")= t('View')
    -if(user()->checkAccess('alert_delete'))
      %a.icon-trash(href="#{url('alert/delete',array('id'=>$alert->id, 'returnUrl'=>ctrl()->getPageLink()))}" onclick="return confirm('#{t('Confirm?')}');")
  %td
    - $this->renderPartial('/shared/_bookmarkIcon', array('hasBookmark'=>$alert->bookmark, 'id_reference' => $alert->id, 'type' => Bookmark::TYPE_ALERT))
