<div class="dropdown custom-board-selector">
    <a href="#" class="dropdown-menu dropdown-menu-link-icon board-selector-btn">
        <i class="fa fa-folder-open fa-fw"></i> <?= t('Display another project') ?> <i class="fa fa-caret-down"></i>
    </a>
    <ul class="custom-board-selector-menu">
        <?php if ($this->user->hasAccess('ProjectCreationController', 'create')): ?>
            <li>
                <?= $this->modal->medium('plus', t('New project'), 'ProjectCreationController', 'create') ?>
            </li>
        <?php endif ?>
        <?php if ($this->app->config('disable_private_project', 0) == 0): ?>
            <li>
                <?= $this->modal->medium('lock', t('New personal project'), 'ProjectCreationController', 'createPrivate') ?>
            </li>
        <?php endif ?>
        
        <?php if (!empty($board_selector)): ?>
            <li><hr></li>
            <?php foreach ($board_selector as $project_id => $project_name): ?>
                <li>
                    <?= $this->url->link($this->text->e($project_name), 'BoardViewController', 'show', array('project_id' => $project_id)) ?>
                </li>
            <?php endforeach ?>
        <?php endif ?>
    </ul>
</div>
