%div
  %div
    .tableContainer.pagination-data-container
      %table.table.table-condensed.span12
        %thead
          %tr
          %tr
            -if(user()->checkAccess('view_live'))
              %th
            %th
            %th= t('ID')
            %th= t('Description')
            %th= t('S/N')
            %th= t('IP')
            %th= t('Device')
            %th= t('Group')
            %th= t('Short name')
            %th= t('Code')

        %tbody
          - foreach($gates as $gate)
            - $gate = new GatePresenter($gate)
            %tr
              -if(user()->checkAccess('view_live'))
                %td
                  -if($gate->hasLive())
                    %a(href="#{$gate->LivePageUrl}" target="_blank" title="#{t('Live')}")
                      .icon-facetime-video
              %td
                %span.status-icon.icon-circle(class="#{$gate->statusClass}" title="#{$gate->statusClass}")
              %td
                =$gate->ID
              %td
                =$gate->Descrizione
              %td
                =$gate->Gate
              %td
                =$gate->IP
              %td
                = t($gate->GateType)
              %td
                != SystemInfoHelper::getGateGroupCoolName($gate->id_group)
              %td
                =$gate->short_name
              %td
                =$gate->Code
