don't provide manage apps button when viewing all available

This commit is contained in:
zotlabs 2018-07-05 22:03:41 -07:00
parent fe44ebee93
commit cc71e507cb
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class Apps extends \Zotlabs\Web\Controller {
'$title' => t('Apps'), '$title' => t('Apps'),
'$apps' => $apps, '$apps' => $apps,
'$authed' => ((local_channel()) ? true : false), '$authed' => ((local_channel()) ? true : false),
'$manage' => t('Manage apps'), '$manage' => (($available) ? '' : t('Manage apps')),
'$create' => (($mode == 'edit') ? t('Create new app') : '') '$create' => (($mode == 'edit') ? t('Create new app') : '')
)); ));

View File

@ -3,7 +3,7 @@
{{if $authed}} {{if $authed}}
{{if $create}} {{if $create}}
<a href="appman" class="pull-right btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i>&nbsp;{{$create}}</a> <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> <a href="apps/edit{{if $cat.0}}/?f=&cat={{$cat.0}}{{/if}}" class="pull-right btn btn-primary btn-sm">{{$manage}}</a>
{{/if}} {{/if}}
{{/if}} {{/if}}