Files
2026-06-01 21:23:12 -07:00

30 lines
1.6 KiB
PHP

<div class="header-left">
<div class="header-titles-stack">
<span class="title" style="display: flex; align-items: center; gap: 8px;">
<?php if (! empty($project) && ! empty($task)): ?>
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
<?php else: ?>
<span>
<?= $this->text->e($title) ?>
<?php if (! empty($project) && $project['task_limit'] && array_key_exists('nb_active_tasks', $project)): ?>
(<span><?= intval($project['nb_active_tasks']) ?></span> / <span title="<?= t('Task limit') ?>"><span class="ui-helper-hidden-accessible"><?= t('Task limit') ?> </span><?= $this->text->e($project['task_limit']) ?></span>)
<?php endif ?>
</span>
<?php endif ?>
<?php if (! empty($description)): ?>
<div class="header-center-description" style="margin-left: 10px;">
<?= $description ?>
</div>
<?php endif ?>
<?php if (!empty($this->helper->projectHeader->hookBefore)) echo $this->helper->projectHeader->hookBefore; ?>
<?php if (!empty($this->helper->projectHeader->hookAfter)) echo $this->helper->projectHeader->hookAfter; ?>
</span>
<?php if (! empty($board_selector)): ?>
<?= $this->render('header/custom_board_selector', array('board_selector' => $board_selector)) ?>
<?php endif ?>
</div>
</div>