From e59750e8de72e5d54356d69f68b6590ff17ee84b Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 18 Dec 2023 13:10:44 +0100 Subject: Add active addons and blocked sites to siteinfo (html) This adds information about addons activated on the hub, as well as which other sites this hub won't federate with in the HTML version of siteinfo. Based on suggestions by @rockyiii@huby.infozoo.de. --- Zotlabs/Module/Siteinfo.php | 2 ++ view/tpl/siteinfo.tpl | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/Zotlabs/Module/Siteinfo.php b/Zotlabs/Module/Siteinfo.php index ac33747f8..18eb703a2 100644 --- a/Zotlabs/Module/Siteinfo.php +++ b/Zotlabs/Module/Siteinfo.php @@ -38,6 +38,8 @@ class Siteinfo extends \Zotlabs\Web\Controller { '$prj_srctxt' => t('Developer homepage'), '$prj_link' => \Zotlabs\Lib\System::get_project_link(), '$prj_src' => \Zotlabs\Lib\System::get_project_srclink(), + '$addons' => array( t('Active addons'), \App::$plugins ), + '$blocked_sites' => array( t('Blocked sites'), \Zotlabs\Lib\Config::Get('system', 'blacklisted_sites') ) ] ); diff --git a/view/tpl/siteinfo.tpl b/view/tpl/siteinfo.tpl index fef3b961e..6cf7da756 100644 --- a/view/tpl/siteinfo.tpl +++ b/view/tpl/siteinfo.tpl @@ -12,6 +12,26 @@
{{if $admin_about}}{{$admin_about}}{{else}}--{{/if}}
+{{if $addons.1}} +
+

{{$addons.0}}

+ +{{/if}} + +{{if $blocked_sites.1}} +
+

{{$blocked_sites.0}}

+ +{{/if}} +

{{$terms}}
-- cgit v1.2.3