#alert-view
  .page-header
    .row.clearfix
      .span8
        %h2
          = t('Event detail')

  .row
    .span4
      #event-data
        .row
          .span4
            - $this->renderPartial('/alert/_eventDetails', array('event' => $event))
  .row          
    .span4
      %h3=t('Images')
      %table
        - foreach ($event->photos as $photo)
          %li
            - if (!Yii::app()->user->checkAccess('edit_event_behaviors'))
              - $footer = $photo->getFooterRectangle()
              - if (isset($footer))
                .footer(data-rect-top="#{$footer->topLeft->y}" data-rect-left="#{$footer->topLeft->x}" data-rect-height="#{$footer->height}" data-rect-width="#{$footer->width}" data-image-height="#{$photo->height}" data-image-width="#{$photo->width}")

            - $plate = $photo->getPlateRectangle()
            - if (isset($plate))
              .plate(data-rect-top="#{$plate->topLeft->y}" data-rect-left="#{$plate->topLeft->x}" data-rect-height="#{$plate->height}" data-rect-width="#{$plate->width}" data-image-height="#{$photo->height}" data-image-width="#{$photo->width}")
            %a(href="#{$photo->url}")
              %img.etalage_source_image(src="#{$photo->url}")


