summaryrefslogtreecommitdiff
path: root/app/Template/header.php
blob: 5d115b4a4e93f80be4e0e7ba6af5be22f283de1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php $_title = $this->render('header/title', array(
    'project' => isset($project) ? $project : null,
    'task' => isset($task) ? $task : null,
    'description' => isset($description) ? $description : null,
    'title' => $title,
)) ?>

<?php $_top_right_corner = implode('&nbsp;', array(
        $this->render('header/user_notifications'),
        $this->render('header/creation_dropdown'),
        $this->render('header/user_dropdown')
    )) ?>

<header>
    <div class="grid grid-reverse grid-noGutter">
        <?php if (! empty($board_selector)): ?>
            <div class="col-1 col_xs-4 col_sm-3 col_md-3 col_lg-2 pull-right">
                <?= $_top_right_corner ?>
            </div>
            <div class="col-2 col_xs-8 col_sm-9 col_md-1 col_lg-1">
                <?= $this->render('header/board_selector', array('board_selector' => $board_selector)) ?>
            </div>
            <div class="col-9 col_xs-12 col_sm-12 col_md-8 col_lg-9">
                <?= $_title ?>
            </div>
        <?php else: ?>
            <div class="col-2 col_xs-12 pull-right">
                <?= $_top_right_corner ?>
            </div>
            <div class="col-10 col_xs-12">
                <?= $_title ?>
            </div>
        <?php endif ?>
    </div>
</header>