summaryrefslogtreecommitdiff
path: root/plugins/TimeMachine/Template/analytic/sidebar.php
blob: cc04bc1d08ed157da6466885f7b63105e337068a (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
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
 * Created by yvalentin.
 * https://yohannvalentin.com
 *
 * Date: 12/11/18
 */
?>

<li <?= $this->app->checkMenuSelection('AnalyticsTimesController', 'timeComparisonBySwimlane') ?>>
    <?= $this->modal->replaceLink(
            t('Estimated vs actual time / Swimlanes'),
            'AnalyticsTimesController',
            'timeComparisonBySwimlane',
            array(
                'plugin' => 'TimeMachine',
                'project_id' => $project['id']
            )
        )
    ?>
</li>
<li <?= $this->app->checkMenuSelection('AnalyticsTimesController', 'timeComparisonByCategories') ?>>
    <?= $this->modal->replaceLink(
        t('Estimated vs actual time / Categories'),
        'AnalyticsTimesController',
        'timeComparisonByCategories',
        array(
            'plugin' => 'TimeMachine',
            'project_id' => $project['id']
        )
    )
    ?>
</li>
<!--TODO check if project has automatic action: task.move.column -  \Kanboard\Action\SubtaskTimerMoveTaskColumn -->
<li <?= $this->app->checkMenuSelection('AnalyticsTimesController', 'timeComparisonByDates') ?>>
    <?= $this->modal->replaceLink(
        t('Spent time / Dates'),
        'AnalyticsTimesController',
        'timeComparisonByDates',
        array(
            'plugin' => 'TimeMachine',
            'project_id' => $project['id']
        )
    )
    ?>
</li>