-if(count($items) > 0)
  .admin-menu-container.span3.pull-right
    .admin-menu-title
      =t($title)
    -$menuItemsDisplayed = 0
    -foreach($items as $itemId => $item)
      -$auth=$item['auth']
      -$visible=$item['visible']
      -$visible = empty($visible) ? true : eval('return ('.intval($visible).');')
      -if($visible && (isEmpty($auth) || user()->checkAccess($auth)))
        -$menuItemsDisplayed++
        %section
          %span.title
            -$rawUrl = $item['url_raw']
            -if(empty($rawUrl))
              -$urlInfo = $item['url']
              -if(is_string($urlInfo))
                -$action = $urlInfo
                -$params = array()
                -$confirm = $item['confirm']
              -else
                -$action = array_first($urlInfo)
                -$urlInfo = array_remove_at($urlInfo, 0);
                -$params = $urlInfo
                -$confirm = $item['confirm']
              -$url = $this->createUrl($action, $params)
            -else
              -$url = $rawUrl
            -if(empty($confirm))
              %a(href="#{$url}")=t($item['label'])
            -else
              %a(href="#{$url}" onclick="return confirm('#{$confirm}')")=t($item['label'])
    -if ( $menuItemsDisplayed <= 0 )
      %section
        %span.title
          = Yii::t("app", "No  availabe action")        
