#live-page
  %h3
    =t("Live")

  %span8
    %table
      %tr
        %td
          .span4
            .live-list-container.span3
              .live-title
                =t("Live")
              - foreach($gates as $gate)
                - if($gate->hasLive())
                  - $liveUrl = $gate->LivePageUrl
                  %section
                    %span.title
                      %a.icon-facetime-video(href="#{$liveUrl}")
                        =$gate->Descrizione
  
              %section
                %span.title
                  %a.icon-th-large(href=Yii::app()->createUrl('live/wall'))
                    =t('View Wall')

        %td
          - if($selectedGate != null)
            =t('Current gate: ')
            %b
              =$selectedGate->Descrizione
            - $this->widget('ext.jwplayer.JwPlayer',array(   |
          		        'rtmpPath'=>$selectedGate->live_url,               |
          		        'flvName'=>$selectedGate->live_url,                |
          		        'width'=>1360/2,                |
          		        'height'=>1024/2,                |
          		         'autoStart'=>true                         |
          		    ));                                            |
