From ad07e717ae78a14ddfcddd9b2eb3d858aed05536 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Wed, 8 Nov 2017 13:37:51 +0530 Subject: [PATCH] cockpit: Add short description to frontpage shortcut Signed-off-by: Joseph Nuthalapati Reviewed-by: Sunil Mohan Adapa --- plinth/modules/cockpit/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plinth/modules/cockpit/__init__.py b/plinth/modules/cockpit/__init__.py index b1b32896f..4ecf8042e 100644 --- a/plinth/modules/cockpit/__init__.py +++ b/plinth/modules/cockpit/__init__.py @@ -14,7 +14,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # - """ Plinth module to configure Cockpit. """ @@ -102,7 +101,9 @@ def setup(helper, old_version=None): def add_shortcut(): """Add a shortcut the frontpage.""" - frontpage.add_shortcut('cockpit', name, url='/_cockpit/', + frontpage.add_shortcut('cockpit', name, + short_description=short_description, + url='/_cockpit/', login_required=True) @@ -128,8 +129,9 @@ def diagnose(): """Run diagnostics and return the results.""" results = [] - results.extend(action_utils.diagnose_url_on_all( - 'https://{host}/_cockpit/', check_certificate=False)) + results.extend( + action_utils.diagnose_url_on_all('https://{host}/_cockpit/', + check_certificate=False)) return results