-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from alfredbuehler/patch-3
Use hooks instead of overwriting
- Loading branch information
Showing
5 changed files
with
46 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<span class="star-project" data-url="<?= $this->url->href('StarredProjectsController', 'starProject', array('plugin' => 'StarredProjects', 'project_id' => $project['id'])) ?>"> | ||
<?php if($this->app->starredProjectsModel->find($project['id'], $this->user->getId())): ?> | ||
★ | ||
<?php else: ?> | ||
☆ | ||
<?php endif; ?> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php $starredProjects = $this->app->starredProjectsModel->findAllProjects($this->user->getId()); ?> | ||
<?php if(!empty($starredProjects)): ?> | ||
<div class="table-list"> | ||
<div class="table-list-header"> | ||
<div class="table-list-header-count"><?= t('Starred projects') ?></div> | ||
<div class="table-list-header-menu"> </div> | ||
</div> | ||
<?php foreach ($starredProjects as $project): ?> | ||
<div class="table-list-row table-border-left"> | ||
<div> | ||
<?php if ($this->user->hasProjectAccess('ProjectViewController', 'show', $project['id'])): ?> | ||
<?= $this->render('project/dropdown', array('project' => $project)) ?> | ||
<?php else: ?> | ||
<strong><?= '#'.$project['id'] ?></strong> | ||
<?php endif ?> | ||
|
||
<span class="star-project" data-url="<?= $this->url->href('StarredProjectsController', 'starProject', array('plugin' => 'StarredProjects', 'project_id' => $project['id'])) ?>"> | ||
<?php if($this->app->starredProjectsModel->find($project['id'], $this->user->getId())): ?> | ||
★ | ||
<?php else: ?> | ||
☆ | ||
<?php endif; ?> | ||
</span> | ||
|
||
<span class="table-list-title <?= $project['is_active'] == 0 ? 'status-closed' : '' ?>"> | ||
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?> | ||
</span> | ||
|
||
<?php if ($project['is_private']): ?> | ||
<i class="fa fa-lock fa-fw" title="<?= t('Private project') ?>"></i> | ||
<?php endif ?> | ||
</div> | ||
</div> | ||
<?php endforeach; ?> | ||
</div> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters