From 8a17c3d348bc985898c39070673c0fb1dc6e6260 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Mon, 2 Feb 2015 18:26:38 +0100 Subject: [PATCH 1/2] added diagnostics tools to the admin side panel --- mod/admin.php | 3 +++ view/templates/admin_aside.tpl | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/mod/admin.php b/mod/admin.php index bf74d3ef3c..4f27b6e6a6 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -121,6 +121,8 @@ function admin_content(&$a) { } $aside['logs'] = Array($a->get_baseurl(true)."/admin/logs/", t("Logs"), "logs"); + $aside['diagnostics_probe'] = Array($a->get_baseurl(true).'/probe/', 'probe addresse', 'probe'); + $aside['diagnostics_webfinger'] = Array($a->get_baseurl(true).'/webfinger/', 'check webfinger', 'webfinger'); $t = get_markup_template("admin_aside.tpl"); $a->page['aside'] .= replace_macros( $t, array( @@ -128,6 +130,7 @@ function admin_content(&$a) { '$admtxt' => t('Admin'), '$plugadmtxt' => t('Plugin Features'), '$logtxt' => t('Logs'), + '$diagnosticstxt' => t('diagnostics'), '$h_pending' => t('User registrations waiting for confirmation'), '$admurl'=> $a->get_baseurl(true)."/admin/" )); diff --git a/view/templates/admin_aside.tpl b/view/templates/admin_aside.tpl index a9d26a89f0..e98ee5584d 100644 --- a/view/templates/admin_aside.tpl +++ b/view/templates/admin_aside.tpl @@ -40,3 +40,8 @@ +

{{$diagnosticstxt}}

+ From e5766a47930936bd99eff83f5b6e4712c43a9e47 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Mon, 2 Feb 2015 20:37:05 +0100 Subject: [PATCH 2/2] make strings translate able --- mod/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 4f27b6e6a6..6f90ef6c3c 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -121,8 +121,8 @@ function admin_content(&$a) { } $aside['logs'] = Array($a->get_baseurl(true)."/admin/logs/", t("Logs"), "logs"); - $aside['diagnostics_probe'] = Array($a->get_baseurl(true).'/probe/', 'probe addresse', 'probe'); - $aside['diagnostics_webfinger'] = Array($a->get_baseurl(true).'/webfinger/', 'check webfinger', 'webfinger'); + $aside['diagnostics_probe'] = Array($a->get_baseurl(true).'/probe/', t('probe addresse'), 'probe'); + $aside['diagnostics_webfinger'] = Array($a->get_baseurl(true).'/webfinger/', t('check webfinger'), 'webfinger'); $t = get_markup_template("admin_aside.tpl"); $a->page['aside'] .= replace_macros( $t, array(