aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-12-20 10:16:44 +0000
committerMario <mario@mariovavti.com>2023-12-20 10:16:44 +0000
commit63c401e6d63e166ff8f545f06aa55503882871bb (patch)
tree5fe93fd807f21fc0f8160226b9ca3fa4eb33c483
parent9df6e821d8e9fce7e177166d9d656280c7466a5d (diff)
parente59750e8de72e5d54356d69f68b6590ff17ee84b (diff)
downloadvolse-hubzilla-63c401e6d63e166ff8f545f06aa55503882871bb.tar.gz
volse-hubzilla-63c401e6d63e166ff8f545f06aa55503882871bb.tar.bz2
volse-hubzilla-63c401e6d63e166ff8f545f06aa55503882871bb.zip
Merge branch 'extend-siteinfo' into 'dev'
Add active addons and blocked sites to siteinfo (html) See merge request hubzilla/core!2079
-rw-r--r--Zotlabs/Module/Siteinfo.php2
-rw-r--r--view/tpl/siteinfo.tpl20
2 files changed, 22 insertions, 0 deletions
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 @@
<div>{{if $admin_about}}{{$admin_about}}{{else}}--{{/if}}</div>
+{{if $addons.1}}
+<br>
+<h3>{{$addons.0}}</h3>
+<ul>
+ {{foreach $addons.1 as $addon}}
+ <li>{{$addon}}</li>
+ {{/foreach}}
+</ul>
+{{/if}}
+
+{{if $blocked_sites.1}}
+<br>
+<h3>{{$blocked_sites.0}}</h3>
+<ul>
+ {{foreach $blocked_sites.1 as $site}}
+ <li>{{$site}}</li>
+ {{/foreach}}
+</ul>
+{{/if}}
+
<br><br>
<div><a href="help/TermsOfService">{{$terms}}</a></div>