aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-05 22:03:41 -0700
committerzotlabs <mike@macgirvin.com>2018-07-05 22:03:41 -0700
commitcc71e507cbb08a4dfec3fa273484297d048a940e (patch)
tree479c94026b28c3293909b781ef14fa339046bbc1
parentfe44ebee93da2b0c4256cd2dcf5d509ce96ac2d2 (diff)
downloadvolse-hubzilla-cc71e507cbb08a4dfec3fa273484297d048a940e.tar.gz
volse-hubzilla-cc71e507cbb08a4dfec3fa273484297d048a940e.tar.bz2
volse-hubzilla-cc71e507cbb08a4dfec3fa273484297d048a940e.zip
don't provide manage apps button when viewing all available
-rw-r--r--Zotlabs/Module/Apps.php2
-rwxr-xr-xview/tpl/myapps.tpl2
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}}
<a href="appman" class="pull-right btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i>&nbsp;{{$create}}</a>
- {{else}}
+ {{elseif $manage}}
<a href="apps/edit{{if $cat.0}}/?f=&cat={{$cat.0}}{{/if}}" class="pull-right btn btn-primary btn-sm">{{$manage}}</a>
{{/if}}
{{/if}}