Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Responsive version + Gantt compatibility + update theme + adding colo…
…r filter in board view
- Loading branch information
JB
committed
Nov 5, 2019
1 parent
4c8ec53
commit 4973e60
Showing
13 changed files
with
254 additions
and
145 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Kanboard\Plugin\Greenwing; | ||
|
||
use Kanboard\Core\Base; | ||
|
||
/** | ||
* Url Helper | ||
* | ||
* @package helper | ||
* @author Frederic Guillot | ||
*/ | ||
class MyUrlHelper extends Base | ||
{ | ||
|
||
/** | ||
* Link element with icon | ||
* | ||
* @access public | ||
* @param string $icon Icon name | ||
* @param string $label Link label | ||
* @param string $controller Controller name | ||
* @param string $action Action name | ||
* @param array $params Url parameters | ||
* @param boolean $csrf Add a CSRF token | ||
* @param string $class CSS class attribute | ||
* @param string $title Link title | ||
* @param boolean $newTab Open the link in a new tab | ||
* @param string $anchor Link Anchor | ||
* @param bool $absolute | ||
* @return string | ||
*/ | ||
public function icon($icon, $label, $controller, $action, array $params = array(), $csrf = false, $class = '', $title = '', $newTab = false, $anchor = '', $absolute = false) | ||
{ | ||
$html = '<i class="fa fa-fw fa-'.$icon.'" aria-hidden="true"></i><span>'.$label.'</span>'; | ||
return $this->helper->url->link($html, $controller, $action, $params, $csrf, $class, $title, $newTab, $anchor, $absolute); | ||
} | ||
} |
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
Empty file.
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,80 @@ | ||
<?php if (! empty($incompatible_plugins)): ?> | ||
<div class="page-header"> | ||
<h2><?= t('Incompatible Plugins') ?></h2> | ||
</div> | ||
<table> | ||
<tr> | ||
<th class="column-35"><?= t('Name') ?></th> | ||
<th class="column-25"><?= t('Author') ?></th> | ||
<th class="column-10"><?= t('Version') ?></th> | ||
<th class="column-12"><?= t('Compatibility') ?></th> | ||
<?php if ($is_configured): ?> | ||
<th><?= t('Action') ?></th> | ||
<?php endif ?> | ||
</tr> | ||
|
||
<?php foreach ($incompatible_plugins as $pluginFolder => $plugin): ?> | ||
<tr> | ||
<td> | ||
<?php if ($plugin->getPluginHomepage()): ?> | ||
<a href="<?= $plugin->getPluginHomepage() ?>" target="_blank" rel="noreferrer"><?= $this->text->e($plugin->getPluginName()) ?></a> | ||
<?php else: ?> | ||
<?= $this->text->e($plugin->getPluginName()) ?> | ||
<?php endif ?> | ||
</td> | ||
<td><?= $this->text->e($plugin->getPluginAuthor()) ?></td> | ||
<td><?= $this->text->e($plugin->getPluginVersion()) ?></td> | ||
<td><?= $this->text->e($plugin->getCompatibleVersion()) ?></td> | ||
<?php if ($is_configured): ?> | ||
<td> | ||
<?= $this->modal->confirm('trash-o', t('Uninstall'), 'PluginController', 'confirm', array('pluginId' => $pluginFolder)) ?> | ||
</td> | ||
<?php endif ?> | ||
</tr> | ||
<tr> | ||
<td colspan="<?= $is_configured ? 6 : 5 ?>"><?= $this->text->e($plugin->getPluginDescription()) ?></td> | ||
</tr> | ||
<?php endforeach ?> | ||
</table> | ||
<?php endif ?> | ||
|
||
<div class="page-header"> | ||
<h2><?= t('Installed Plugins') ?></h2> | ||
</div> | ||
|
||
<?php if (empty($plugins)): ?> | ||
<p class="alert"><?= t('There is no plugin loaded.') ?></p> | ||
<?php else: ?> | ||
<table class="table-scrolling"> | ||
<tr> | ||
<th class="column-35"><?= t('Name') ?></th> | ||
<th class="column-30"><?= t('Author') ?></th> | ||
<th class="column-10"><?= t('Version') ?></th> | ||
<?php if ($is_configured): ?> | ||
<th><?= t('Action') ?></th> | ||
<?php endif ?> | ||
</tr> | ||
|
||
<?php foreach ($plugins as $pluginFolder => $plugin): ?> | ||
<tr> | ||
<td> | ||
<?php if ($plugin->getPluginHomepage()): ?> | ||
<a href="<?= $plugin->getPluginHomepage() ?>" target="_blank" rel="noreferrer"><?= $this->text->e($plugin->getPluginName()) ?></a> | ||
<?php else: ?> | ||
<?= $this->text->e($plugin->getPluginName()) ?> | ||
<?php endif ?> | ||
</td> | ||
<td><?= $this->text->e($plugin->getPluginAuthor()) ?></td> | ||
<td><?= $this->text->e($plugin->getPluginVersion()) ?></td> | ||
<?php if ($is_configured): ?> | ||
<td> | ||
<?= $this->modal->confirm('trash-o', t('Uninstall'), 'PluginController', 'confirm', array('pluginId' => $pluginFolder)) ?> | ||
</td> | ||
<?php endif ?> | ||
</tr> | ||
<tr> | ||
<td colspan="<?= $is_configured ? 4 : 3 ?>"><?= $this->text->e($plugin->getPluginDescription()) ?></td> | ||
</tr> | ||
<?php endforeach ?> | ||
</table> | ||
<?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
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,13 @@ | ||
<ul class="views"> | ||
<li <?= $this->app->checkMenuSelection('ProjectOverviewController') ?>> | ||
<?= $this->myUrlHelper->icon('eye', t('Overview'), 'ProjectOverviewController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-overview', t('Keyboard shortcut: "%s"', 'v o')) ?> | ||
</li> | ||
<li <?= $this->app->checkMenuSelection('BoardViewController') ?>> | ||
<?= $this->myUrlHelper->icon('th', t('Board'), 'BoardViewController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-board', t('Keyboard shortcut: "%s"', 'v b')) ?> | ||
</li> | ||
<li <?= $this->app->checkMenuSelection('TaskListController') ?>> | ||
<?= $this->myUrlHelper->icon('list', t('List'), 'TaskListController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?> | ||
</li> | ||
|
||
<?= $this->hook->render('template:project-header:view-switcher', array('project' => $project, 'filters' => $filters)) ?> | ||
</ul> |
Oops, something went wrong.