%td!= $alert->levelIcon

%td
  %a.tooltipbox
    .alert-description
      = t($alert->description)
      - if($alert->event_note)
        = "-"
        - $this->renderPartial('/shared/_alertNote', array('alert' => $alert))  
      %span
        %p
          -if(isset(Yii::app()->params['eventsToShow']) && Yii::app()->params['eventsToShow']=="alarm")
            %b
              #{t('List')}:
            #{$alert->getListName()}
            %br
            %b
              #{t('Notes')}:
            #{$alert->getAlertNotes()}
            %br
            -if(isset(Yii::app()->params['eventsToShow']) && Yii::app()->params['eventsToShow']=="alarm")
              %b
                #{t('Alert type')}:
          - $categories = $alert->blacklistCategories
          - if(!empty($categories))
            - foreach($categories as $cat)
              = "{$cat} "
              %br
          - else
            - if(isset(Yii::app()->params['eventsToShow']) && Yii::app()->params['eventsToShow']=="alarm")
              N/A
              %br
          -if(!isset(Yii::app()->params['eventsToShow']) || Yii::app()->params['eventsToShow']!=="alarm")
            %b
              #{t('Action')}:
            %br
            - if(strlen($alert->action) > 0)  
              = "{$alert->action}"
            - else    
              =t('no specific action')

%td
  %a.tooltipbox
    .alert-gate-description
      = $alert->gateShortLabel
    %span
      %p
        ="{$alert->gateLabel}"
%td
  .alert-date-column
    = DateHelper::formatLocalDate($alert->alertDateTime)
%td
  .alert-time-column
    = DateHelper::formatISO9075Time($alert->alertDateTime)
- $speed = $alert->vehicleSpeed
%td= $speed
-if(!isset(Yii::app()->params['eventsToShow']) || Yii::app()->params['eventsToShow']!=="alarm")
  %td
    - $this->renderPartial('/shared/_kemlerCode', array('kemlerCode'=>$alert->vehicleKemler))
%td
  - if(!Yii::app()->user->checkAccess('view_vehicle_landmarks'))
    .vehicle-class-box
      %img.vehicle-class-icon-small(src="#{Yii::app()->baseUrl}/images/vehicle-classes/#{$alert->vehicleClassIcon}")
  - else  
    .vehicle-class-box-full  
      - if ($alert->vehicleClassIcon)
        %img.vehicle-class-icon-small(src="#{Yii::app()->baseUrl}/images/vehicle-classes/#{$alert->vehicleClassIcon}")
      - if(!is_null($signList) || $alert->yellowBarType)
        %a.signs-box.pull-right.tooltipbox
          .signs-box-speed-limit 
            - if(!is_null($signList))
              - foreach($signList as $sign)
                %img.speed-limit-sign-icon-small(src="#{Yii::app()->baseUrl}/images/speed-limit-signals/#{$sign}.png")
          - if($alert->yellowBarType)
            %img.yellow-bar-sign-icon-small(src="#{Yii::app()->baseUrl}/images/vehicle-signs/yb_#{$alert->yellowBarType}.png")
          %span
            - if(!is_null($signList))
              - foreach($signList as $sign)
                %img.speed-limit-sign-icon-medium(src="#{Yii::app()->baseUrl}/images/speed-limit-signals/#{$sign}.png")
            - if($alert->yellowBarType)
              %img.yellow-bar-sign-icon-medium(src="#{Yii::app()->baseUrl}/images/vehicle-signs/yb_#{$alert->yellowBarType}.png")
   
%td
  - if ($alert->hasAssociatedEvent())
    - $colorSet = $alert->associatedEvent->colorSet
    - if (isset($colorSet) && $colorSet->computed)
      - $this->renderPartial('/shared/_colorSet', array('colors' => $colorSet->getColorsArray(3)))

%td.license-plate
  .licence-plate-box
    - if($alert->hasAssociatedEvent())
      - if($alert->nationalityCode != '')
        - $this->renderPartial('/shared/_countryFlag', array('isoCode' => $alert->associatedEvent->nationalityCode))
      - else
        %img(width="16px")
  
      -if(paramdeep('alerts','photoPreviewOnPlate'))
        %a(href="#{$alert->previewPhotoUrl}" data-lightbox="alert-preview-#{$alert->id}")
          - if(Yii::app()->user->checkAccess('license_plate_visibility'))
            = $alert->plate
          - else
            ="#######"
        - if(strlen($alert->previewColorPhotoUrl) > 0)   
          %a(href="#{$alert->previewColorPhotoUrl}" data-lightbox="alert-preview-#{$alert->id}" visibility='hidden')
      - else
        - if(Yii::app()->user->checkAccess('license_plate_visibility'))
          = $alert->plate
        - else
          ="#######"
