summaryrefslogtreecommitdiff
path: root/plugins/Boardcustomizer/Template
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Boardcustomizer/Template')
-rw-r--r--plugins/Boardcustomizer/Template/layout/head.php173
-rw-r--r--plugins/Boardcustomizer/Template/project/dropdown.php3
-rw-r--r--plugins/Boardcustomizer/Template/user/settings.php29
-rw-r--r--plugins/Boardcustomizer/Template/user/sidebar.php3
4 files changed, 208 insertions, 0 deletions
diff --git a/plugins/Boardcustomizer/Template/layout/head.php b/plugins/Boardcustomizer/Template/layout/head.php
new file mode 100644
index 00000000..fca861f9
--- /dev/null
+++ b/plugins/Boardcustomizer/Template/layout/head.php
@@ -0,0 +1,173 @@
+<?php
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_materialcard")) {
+ /* change overall card layout and shadow */
+ ?>
+ <style>
+ .board-task-list>div.task-board {
+ font-size: 13px;
+ border-left-width: 2.5px !important;
+ border-radius: 3px;
+ padding-left: 6px;
+ padding-right: 4px;
+ padding-top: 6px;
+ padding-bottom: 6px;
+ margin-bottom: 8px;
+ margin-left: 8px;
+ margin-right: 8px;
+ box-shadow: 0 1px 2px rgba(62, 54, 54, 0.55);
+ border-right: none;
+ border-top: 1px solid #ececec;
+ border-bottom: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_onlyfirstcolumnheaders")) {
+ /* This will hide all column titles on swimlanes except for the first one */
+ ?>
+ <style>
+ tr[class*='board-swimlane-columns']:not(:first-child) {
+ display: none;
+ }
+
+ .board-column-header-task-count {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetaskage")) {
+ /* hide task age */
+ ?>
+ <style>
+ .task-icon-age {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetaskpriority")) {
+ /* hide task priority */
+ ?>
+ <style>
+ .task-priority {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_whitebackground")) {
+ /* task white background */
+ ?>
+ <style>
+ .board-task-list>div {
+ background-color: white !important;
+ background: #fff;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_topnavhiddenscrollbar")) {
+ /* better nav bar */
+ ?>
+ <style>
+ #select-dropdown-menu {
+ overflow: auto !important;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_groupassign_hidecardlabels")) {
+ /* hide group assign labels */
+ ?>
+ <style>
+ .assigned-group-label {
+ display: none;
+ }
+
+ .assigned-other-label {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hideownername")) {
+ /* hide owner text */
+ ?>
+ <style>
+ div.task-board-header > .task-board-assignee {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidecategory")) {
+ /* hide category */
+ ?>
+ <style>
+ .task-board-category-container {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetags")) {
+ /* hide tags */
+ ?>
+ <style>
+ .task-tags {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidefooter")) {
+ /* hide whole footer */
+ ?>
+ <style>
+ .task-board-icons {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidereference")) {
+ /* hide reference */
+ ?>
+ <style>
+ .task-board-reference {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidescore")) {
+ /* hide score */
+ ?>
+ <style>
+ .task-score {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetimeestimated")) {
+ /* hide time estimated */
+ ?>
+ <style>
+ .task-time-estimated {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetaskdate")) {
+ /* hide task date */
+ ?>
+ <style>
+ .task-date {
+ display: none;
+ }
+ </style>
+<?php
+} \ No newline at end of file
diff --git a/plugins/Boardcustomizer/Template/project/dropdown.php b/plugins/Boardcustomizer/Template/project/dropdown.php
new file mode 100644
index 00000000..0d9f7e6a
--- /dev/null
+++ b/plugins/Boardcustomizer/Template/project/dropdown.php
@@ -0,0 +1,3 @@
+<li>
+ <?= $this->url->icon('cog', t('My display settings'), 'SettingsController', 'showSettings', array('plugin' => 'boardcustomizer')) ?>
+</li> \ No newline at end of file
diff --git a/plugins/Boardcustomizer/Template/user/settings.php b/plugins/Boardcustomizer/Template/user/settings.php
new file mode 100644
index 00000000..9a6e3124
--- /dev/null
+++ b/plugins/Boardcustomizer/Template/user/settings.php
@@ -0,0 +1,29 @@
+<div class="page-header">
+ <h2><?= t('My display settings') ?></h2>
+</div>
+
+
+<?php if (empty($options)) : ?>
+ <p class="alert"><?= t('No options') ?></p>
+<?php else : ?>
+ <table class="table-small table-fixed">
+ <tr>
+ <th class="column-40"><?= t('Option') ?></th>
+ <th class="column-20"><?= t('Status') ?></th>
+ </tr>
+ <?php foreach ($options as $option => $key) : ?>
+ <tr>
+ <td>
+ <?= $option ?>
+ </td>
+ <td>
+ <?php if ($this->user->userMetadataModel->exists($user['id'], $key)) : ?>
+ <?= $this->url->icon('toggle-off', t('Disable'), 'SettingsController', 'disable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?>
+ <?php else : ?>
+ <?= $this->url->icon('toggle-on', t('Enable'), 'SettingsController', 'enable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?>
+ <?php endif ?>
+ </td>
+ </tr>
+ <?php endforeach ?>
+ </table>
+<?php endif ?> \ No newline at end of file
diff --git a/plugins/Boardcustomizer/Template/user/sidebar.php b/plugins/Boardcustomizer/Template/user/sidebar.php
new file mode 100644
index 00000000..2d7a1582
--- /dev/null
+++ b/plugins/Boardcustomizer/Template/user/sidebar.php
@@ -0,0 +1,3 @@
+<li <?= $this->app->checkMenuSelection('SettingsController', 'showSettings') ?>>
+ <?= $this->url->link(t('My display settings'), 'SettingsController', 'showSettings', array('plugin' => 'boardcustomizer')) ?>
+</li> \ No newline at end of file