#dashboard-page
  - $user = Yii::app()->user
  - $emptyDashboard = true
  
  .page-header
    %h2
      %li.icon-th
      = Yii::t("app", "Dashboard")

  .row
    - if($user->checkAccess('start_stop_service') || $user->checkAccess('view_services_status'))
      -$emptyDashboard = false
      .span4
        %h3= Yii::t("app", "Tasks")
        #services-table
          -# content will be loaded with ajax
  
        #service-manual-start-modal.modal.hide.fade

    - if (Yii::app()->user->checkAccess('create_events_report') || Yii::app()->user->checkAccess('show_sessions_details'))
      -$emptyDashboard = false
      .span8
        %h3
          = Yii::t("app", "Activity Report")
        .box.session.alert.alert-normal
          - $this->renderPartial('workPeriod/_eventsReport', array('workPeriods' => $workPeriods, 'pagination'=> false))

    - if ( count( $plateLists ) > 0 )
      -$emptyDashboard = false
      .span8
        %h3
          = Yii::t("app", "Plate authorizations")
        .box.session.alert.alert-normal
          - $this->renderPartial('plateAuths/_plateAuthSummary', array('plateLists'=>$plateLists))

  - if($emptyDashboard)              
    .row
      #menu-cloud.span12
      - $this->renderPartial('_tagcanvasCloud')
      