From 6be831fd32fbf4e3f9122c92009f63a039f022f6 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 17 Nov 2018 18:33:12 +0100 Subject: [PATCH] Add link to user groups from /contact There was no way to get to the contact group editor from the contact overview. Additionally the documentation about the used accesskeys was updated. --- doc/Accesskeys.md | 1 + src/Module/Contact.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/doc/Accesskeys.md b/doc/Accesskeys.md index 8e889fa99c..9158efd582 100644 --- a/doc/Accesskeys.md +++ b/doc/Accesskeys.md @@ -46,6 +46,7 @@ General * i - Only show ignored contacts * y - Only show archived contacts * h - Only show hidden contacts +* e - Edit contact groups ../contacts (single contact view) ------------------------------- diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 810d5550ca..80e9c73b63 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -755,6 +755,14 @@ class Contact extends BaseModule 'id' => 'showhidden-tab', 'accesskey' => 'h', ], + [ + 'label' => L10n::t('Groups'), + 'url' => 'group', + 'sel' => ($hidden) ? 'active' : '', + 'title' => L10n::t('Organize your contact groups'), + 'id' => 'contactgroups-tab', + 'accesskey' => 'e', + ], ]; $tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');