diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-31 17:57:02 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-31 17:57:02 -0400 |
commit | 599b6624dde8cb1c1f6416ee0af530402089da4d (patch) | |
tree | 2cc995b09a4b2e67de276389fb28b0040d484296 /app/Template/budget | |
parent | 380aacd3f586089ae5c1e69841c0e0cb99478dcd (diff) |
Improve project navigation
Diffstat (limited to 'app/Template/budget')
-rw-r--r-- | app/Template/budget/breakdown.php | 6 | ||||
-rw-r--r-- | app/Template/budget/create.php | 6 | ||||
-rw-r--r-- | app/Template/budget/index.php | 8 | ||||
-rw-r--r-- | app/Template/budget/sidebar.php | 14 |
4 files changed, 19 insertions, 15 deletions
diff --git a/app/Template/budget/breakdown.php b/app/Template/budget/breakdown.php index 3275a66a..92561188 100644 --- a/app/Template/budget/breakdown.php +++ b/app/Template/budget/breakdown.php @@ -1,9 +1,5 @@ <div class="page-header"> - <h2><?= t('Budget') ?></h2> - <ul> - <li><?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?></li> - <li><?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?></li> - </ul> + <h2><?= t('Cost breakdown') ?></h2> </div> <?php if ($paginator->isEmpty()): ?> diff --git a/app/Template/budget/create.php b/app/Template/budget/create.php index d64bbc48..a563796d 100644 --- a/app/Template/budget/create.php +++ b/app/Template/budget/create.php @@ -1,9 +1,5 @@ <div class="page-header"> - <h2><?= t('Budget') ?></h2> - <ul> - <li><?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?></li> - <li><?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?></li> - </ul> + <h2><?= t('Budget lines') ?></h2> </div> <?php if (! empty($lines)): ?> diff --git a/app/Template/budget/index.php b/app/Template/budget/index.php index d9fefc67..4fe8ac69 100644 --- a/app/Template/budget/index.php +++ b/app/Template/budget/index.php @@ -2,11 +2,7 @@ <?= $this->asset->js('assets/js/vendor/dimple.v2.1.2.min.js') ?> <div class="page-header"> - <h2><?= t('Budget') ?></h2> - <ul> - <li><?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?></li> - <li><?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?></li> - </ul> + <h2><?= t('Budget overview') ?></h2> </div> <?php if (! empty($daily_budget)): ?> @@ -32,4 +28,6 @@ </tr> <?php endforeach ?> </table> +<?php else: ?> + <p class="alert"><?= t('There is not enough data to show something.') ?></p> <?php endif ?> diff --git a/app/Template/budget/sidebar.php b/app/Template/budget/sidebar.php new file mode 100644 index 00000000..7740cf00 --- /dev/null +++ b/app/Template/budget/sidebar.php @@ -0,0 +1,14 @@ +<div class="sidebar"> + <h2><?= t('Budget') ?></h2> + <ul> + <li> + <?= $this->url->link(t('Budget overview'), 'budget', 'index', array('project_id' => $project['id'])) ?> + </li> + <li> + <?= $this->url->link(t('Budget lines'), 'budget', 'create', array('project_id' => $project['id'])) ?> + </li> + <li> + <?= $this->url->link(t('Cost breakdown'), 'budget', 'breakdown', array('project_id' => $project['id'])) ?> + </li> + </ul> +</div>
\ No newline at end of file |