summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 16:31:45 +0100
committerDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 16:31:45 +0100
commitf5ff8e388e92f2b834adfcefca2744b9808b4eac (patch)
treef79be3775ea079e70b887da67479d2ad607a94e4
parentf67ce1c32e8d4f3c9d2abc35dacea69ed35be16d (diff)
Extending Boardcustomizer with additional options and Polish locale
-rw-r--r--plugins/Boardcustomizer/Controller/SettingsController.php2
-rw-r--r--plugins/Boardcustomizer/Locale/pl_PL/translations.php25
-rw-r--r--plugins/Boardcustomizer/Template/layout/head.php22
-rw-r--r--plugins/Boardcustomizer/Template/user/settings.php6
4 files changed, 51 insertions, 4 deletions
diff --git a/plugins/Boardcustomizer/Controller/SettingsController.php b/plugins/Boardcustomizer/Controller/SettingsController.php
index e98ffbde..e1443cf9 100644
--- a/plugins/Boardcustomizer/Controller/SettingsController.php
+++ b/plugins/Boardcustomizer/Controller/SettingsController.php
@@ -22,6 +22,8 @@ class SettingsController extends BaseController
t('Card: hide all footer icons') => 'boardcustomizer_hidefooter',
t('Card: hide task priority') => 'boardcustomizer_hidetaskpriority',
t('Card: hide task age') => 'boardcustomizer_hidetaskage',
+ t('Card: hide description link') => 'boardcustomizer_hidedescription',
+ t('Card: hide linked tasks') => 'boardcustomizer_hidelinks',
t('Card: hide reference') => 'boardcustomizer_hidereference',
t('Card: hide score') => 'boardcustomizer_hidescore',
t('Card: hide time estimated') => 'boardcustomizer_hidetimeestimated',
diff --git a/plugins/Boardcustomizer/Locale/pl_PL/translations.php b/plugins/Boardcustomizer/Locale/pl_PL/translations.php
new file mode 100644
index 00000000..4d21d038
--- /dev/null
+++ b/plugins/Boardcustomizer/Locale/pl_PL/translations.php
@@ -0,0 +1,25 @@
+<?php
+
+return array(
+ 'My display settings' => 'Ustawienia wyświetlania',
+ 'Board: only show first column header' => 'Tablica: wyświetlaj tylko pierwszy nagłówek',
+ 'Board: top selection without scollbar' => 'Tablica: górny panel bez przewijania',
+ 'Card: material design' => 'Zadanie: material design',
+ 'Card: hide task priority' => 'Zadanie: ukryj priorytet',
+ 'Card: hide task age' => 'Zadanie: ukryj czas trwania',
+ 'Card: white background' => 'Zadanie: wymuś białe tło',
+ 'Card: hide group labels' => 'Zadanie: ukryj etykiety grup',
+ 'Customize board and card style' => 'Dostosuj wygląd tablicy i zadań',
+ 'Card: hide owner name' => 'Zadanie: ukryj nazwę właściciela',
+ 'Card: hide category' => 'Zadanie: ukryj kategorię',
+ 'Card: hide tags' => 'Zadanie: ukryj tagi',
+ 'Card: hide all footer icons' => 'Zadanie: ukryj wszystkie dolne ikony',
+ 'Card: hide reference' => 'Zadanie: ukryj odwołania',
+ 'Card: hide score' => 'Zadanie: ukryj punktację',
+ 'Card: hide time estimated' => 'Zadanie: ukryj oszacowanie czasu',
+ 'Card: hide task date' => 'Zadanie: ukryj datę',
+ 'Card: hide description link' => 'Zadanie: ukryj link opisu',
+ 'Card: hide linked tasks' => 'Zadanie: ukryj powiązania',
+ 'Toggle enabled' => 'Włączone',
+ 'Toggle disabled' => 'Wyłączone'
+);
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 ?>