summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Template/board_index.php26
-rw-r--r--assets/css/app.css9
2 files changed, 31 insertions, 4 deletions
diff --git a/app/Template/board_index.php b/app/Template/board_index.php
index bff7dcc9..4fd3d326 100644
--- a/app/Template/board_index.php
+++ b/app/Template/board_index.php
@@ -2,6 +2,9 @@
<div class="page-header board">
<h2>
+ <?php if (Helper\is_admin()): ?>
+ <?= Helper\a('<i class="fa fa-cog"></i>', 'project', 'show', array('project_id' => $current_project_id)) ?>
+ <?php endif ?>
<?= t('Project "%s"', $current_project_name) ?>
</h2>
</div>
@@ -16,10 +19,25 @@
<span class="hide-tablet"><?= t('Filter by category') ?></span>
<?= Helper\form_select('category_id', $categories, $filters) ?>
</li>
- <li><a href="#" id="filter-due-date"><?= t('Filter by due date') ?></a></li>
- <li><a href="?controller=project&amp;action=search&amp;project_id=<?= $current_project_id ?>"><?= t('Search') ?></a></li>
- <li><a href="?controller=project&amp;action=tasks&amp;project_id=<?= $current_project_id ?>"><?= t('Completed tasks') ?></a></li>
- <li><a href="?controller=project&amp;action=activity&amp;project_id=<?= $current_project_id ?>"><?= t('Activity') ?></a></li>
+ <li>
+ <a href="#" id="filter-due-date"><?= t('Filter by due date') ?></a>
+ </li>
+ <li>
+ <i class="fa fa-search"></i>
+ <?= Helper\a(t('Search'), 'project', 'search', array('project_id' => $current_project_id)) ?>
+ </li>
+ <li>
+ <i class="fa fa-check-square-o"></i>
+ <?= Helper\a(t('Completed tasks'), 'project', 'tasks', array('project_id' => $current_project_id)) ?>
+ </li>
+ <li>
+ <i class="fa fa-dashboard"></i>
+ <?= Helper\a(t('Activity'), 'project', 'activity', array('project_id' => $current_project_id)) ?>
+ </li>
+ <?php if (Helper\is_admin()): ?>
+ <li><i class="fa fa-cog"></i>
+ <?= Helper\a(t('Edit board'), 'board', 'edit', array('project_id' => $current_project_id)) ?>
+ <?php endif ?>
</ul>
</div>
diff --git a/assets/css/app.css b/assets/css/app.css
index 630d94c5..c767cab1 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -522,6 +522,15 @@ nav .active a {
border-bottom: 1px dotted red;
}
+.page-header h2 a {
+ color: #ddd;
+}
+
+.page-header h2 a:focus,
+.page-header h2 a:hover {
+ color: #333;
+}
+
.page-header ul {
text-align: left;
margin-top: 5px;