- project->treeLevel as $name => $btnLevel):?>
- ';
- if($name == 'all') $icon = ' ';
- ?>
-
-
+ project->treeLevel as $name => $btnLevel)
+ {
+ if(empty($tree) && ($name == 'root' or $name == 'all')) continue;
+ $icon = '';
+ if($name == 'root') $icon = ' ';
+ if($name == 'all') $icon = ' ';
+ echo html::a('javascript:;', "$btnLevel$icon", '', "class='btn btn-link btn-tree-view' data-type='{$name}'");
+ }
+ ?>