diff options
Diffstat (limited to 'plugins/Boardcustomizer/Template')
-rw-r--r-- | plugins/Boardcustomizer/Template/layout/head.php | 22 | ||||
-rw-r--r-- | plugins/Boardcustomizer/Template/user/settings.php | 6 |
2 files changed, 24 insertions, 4 deletions
diff --git a/plugins/Boardcustomizer/Template/layout/head.php b/plugins/Boardcustomizer/Template/layout/head.php index fca861f9..1a352407 100644 --- a/plugins/Boardcustomizer/Template/layout/head.php +++ b/plugins/Boardcustomizer/Template/layout/head.php @@ -141,6 +141,26 @@ if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomize </style>
<?php
}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidelinks")) {
+ /* hide linked tasks */
+ ?>
+ <style>
+ .task-board-icons-row span.tooltip[data-href*="tasklinks"] {
+ display: none;
+ }
+ </style>
+<?php
+}
+if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidedescription")) {
+ /* hide description icon */
+ ?>
+ <style>
+ .task-board-icons-row span.tooltip[data-href*="action=description"] {
+ display: none;
+ }
+ </style>
+<?php
+}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidescore")) {
/* hide score */
?>
@@ -170,4 +190,4 @@ if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomize }
</style>
<?php
-}
\ No newline at end of file +}
diff --git a/plugins/Boardcustomizer/Template/user/settings.php b/plugins/Boardcustomizer/Template/user/settings.php index 9a6e3124..4d2ba42f 100644 --- a/plugins/Boardcustomizer/Template/user/settings.php +++ b/plugins/Boardcustomizer/Template/user/settings.php @@ -18,12 +18,12 @@ </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) ?>
+ <?= $this->url->icon('toggle-on', t('Toggle enabled'), '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) ?>
+ <?= $this->url->icon('toggle-off', t('Toggle disabled'), 'SettingsController', 'enable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?>
<?php endif ?>
</td>
</tr>
<?php endforeach ?>
</table>
-<?php endif ?>
\ No newline at end of file +<?php endif ?>
|