diff options
Diffstat (limited to 'plugins/Boardcustomizer/Template/layout/head.php')
-rw-r--r-- | plugins/Boardcustomizer/Template/layout/head.php | 173 |
1 files changed, 173 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 |