Skip to content

Commit

Permalink
Merge pull request #36 from Jieiku/Home-Button
Browse files Browse the repository at this point in the history
Update switcher.php to Add Home and Activity buttons
  • Loading branch information
Jieiku authored Dec 13, 2021
2 parents faf08d6 + c396ef1 commit 1ebd4d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public function initialize()
$this->template->hook->attach('template:project-list:menu:before', 'bigboard:Bigboard');
$this->template->hook->attach('template:header:dropdown', 'bigboard:header/user_dropdown');
$this->template->hook->attach('template:dashboard:page-header:menu', 'bigboard:header/bigboard_header_link');
$this->template->hook->attach('template:project-header:view-switcher', 'bigboard:header/bigboard_header_link');

if ($this->request->getStringParam("plugin") == "Bigboard") {
$this->template->setTemplateOverride('board/table_container', 'bigboard:board/table_container');
Expand Down
10 changes: 8 additions & 2 deletions Template/board/switcher.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<div class="table-list">
<div class="views-switcher-component">
<ul class="views">
<li>
<a href="<?= $this->app->config('application_url') ?>"><i class="fa fa-home fa-fw"></i><?= t('Home') ?></a>
</li>
<li>
<?= $this->url->icon('eye', t('Projects Selection'), 'Bigboard', 'select', ['plugin' => 'Bigboard', 'boardview' => 'active', ], false, 'js-modal-medium') ?>
</li>
<li class="collapse_all">
<a href="#"><i class="fa fa-folder-o fa-fw"></i><?= t('Collapse all projects') ?></a>
<a href="#"><i class="fa fa-folder-o fa-fw"></i><?= t('Collapse projects') ?></a>
</li>
<li class="expand_all">
<a href="#"><i class="fa fa-folder-open-o fa-fw"></i><?= t('Expand all projects') ?></a>
<a href="#"><i class="fa fa-folder-open-o fa-fw"></i><?= t('Expand projects') ?></a>
</li>
<li>
<span class="filter-display-mode" <?= $bigboarddisplaymode ? '' : 'style="display: none;"' ?>>
Expand All @@ -30,6 +33,9 @@
</a>
</span>
</li>
<li>
<a href="/?controller=ActivityController&amp;action=user" class="js-modal-medium" title=""><i class="fa fa-dashboard fa-fw js-modal-medium" aria-hidden="true"></i><?= t('Activity') ?></a>
</li>
</ul>
</div>
</div>

0 comments on commit 1ebd4d9

Please sign in to comment.