From cc71e507cbb08a4dfec3fa273484297d048a940e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 5 Jul 2018 22:03:41 -0700 Subject: don't provide manage apps button when viewing all available --- Zotlabs/Module/Apps.php | 2 +- view/tpl/myapps.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Zotlabs/Module/Apps.php b/Zotlabs/Module/Apps.php index 10f40af71..78c8d99ae 100644 --- a/Zotlabs/Module/Apps.php +++ b/Zotlabs/Module/Apps.php @@ -50,7 +50,7 @@ class Apps extends \Zotlabs\Web\Controller { '$title' => t('Apps'), '$apps' => $apps, '$authed' => ((local_channel()) ? true : false), - '$manage' => t('Manage apps'), + '$manage' => (($available) ? '' : t('Manage apps')), '$create' => (($mode == 'edit') ? t('Create new app') : '') )); diff --git a/view/tpl/myapps.tpl b/view/tpl/myapps.tpl index 0ac836b38..2cc747436 100755 --- a/view/tpl/myapps.tpl +++ b/view/tpl/myapps.tpl @@ -3,7 +3,7 @@ {{if $authed}} {{if $create}}  {{$create}} - {{else}} + {{elseif $manage}} {{$manage}} {{/if}} {{/if}} -- cgit v1.2.3