Include more shortcut links into the view "My projects"

This commit is contained in:
Frederic Guillot
2015-10-07 19:30:16 -04:00
parent 4785174e43
commit 8b086e8740
3 changed files with 87 additions and 80 deletions

View File

@@ -21,6 +21,7 @@ Core functionalities moved to plugins:
Improvements: Improvements:
* Include more shortcut links into the view "My projects"
* Duplicate a project with tasks will copy the new tasks in the same columns * Duplicate a project with tasks will copy the new tasks in the same columns
* Offer alternative method to create Mysql and Postgres databases (import sql dump) * Offer alternative method to create Mysql and Postgres databases (import sql dump)
* Make sure there is always a trailing slash for application_url * Make sure there is always a trailing slash for application_url

View File

@@ -6,8 +6,9 @@
<?php else: ?> <?php else: ?>
<table class="table-fixed table-small"> <table class="table-fixed table-small">
<tr> <tr>
<th class="column-8"><?= $paginator->order('Id', 'id') ?></th> <th class="column-5"><?= $paginator->order('Id', 'id') ?></th>
<th class="column-20"><?= $paginator->order(t('Project'), 'name') ?></th> <th class="column-3"><?= $paginator->order('<i class="fa fa-lock fa-fw" title="'.t('Private project').'"></i>', 'is_private') ?></th>
<th class="column-25"><?= $paginator->order(t('Project'), 'name') ?></th>
<th><?= t('Columns') ?></th> <th><?= t('Columns') ?></th>
</tr> </tr>
<?php foreach ($paginator->getCollection() as $project): ?> <?php foreach ($paginator->getCollection() as $project): ?>
@@ -15,11 +16,18 @@
<td> <td>
<?= $this->url->link('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?> <?= $this->url->link('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?>
</td> </td>
<td>
<?php if ($project['is_private']): ?>
<i class="fa fa-lock fa-fw" title="<?= t('Private project') ?>"></i>
<?php endif ?>
</td>
<td> <td>
<?php if ($this->user->isProjectManagementAllowed($project['id'])): ?> <?php if ($this->user->isProjectManagementAllowed($project['id'])): ?>
<?= $this->url->link('<i class="fa fa-cog"></i>', 'project', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Settings')) ?>&nbsp; <?= $this->url->link('<i class="fa fa-cog"></i>', 'project', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Settings')) ?>
<?= $this->url->link('<i class="fa fa-sliders fa-fw"></i>', 'gantt', 'project', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Gantt chart')) ?>
<?php endif ?> <?php endif ?>
<?= $this->url->link('<i class="fa fa-list"></i>', 'listing', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('List')) ?>&nbsp;
<?= $this->url->link('<i class="fa fa-calendar"></i>', 'calendar', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Calendar')) ?>&nbsp; <?= $this->url->link('<i class="fa fa-calendar"></i>', 'calendar', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Calendar')) ?>&nbsp;
<?= $this->url->link($this->e($project['name']), 'board', 'show', array('project_id' => $project['id'])) ?> <?= $this->url->link($this->e($project['name']), 'board', 'show', array('project_id' => $project['id'])) ?>

View File

@@ -11,7 +11,6 @@
<?php endif ?> <?php endif ?>
</ul> </ul>
</div> </div>
<section>
<?php if ($paginator->isEmpty()): ?> <?php if ($paginator->isEmpty()): ?>
<p class="alert"><?= t('No project') ?></p> <p class="alert"><?= t('No project') ?></p>
<?php else: ?> <?php else: ?>
@@ -97,5 +96,4 @@
<?= $paginator ?> <?= $paginator ?>
<?php endif ?> <?php endif ?>
</section>
</section> </section>