distinguish between groups and other one-way connections

This commit is contained in:
Mike Macgirvin 2024-06-17 13:06:42 +10:00
parent 64b60b035b
commit c006594d84
2 changed files with 7 additions and 1 deletions

View file

@ -395,6 +395,8 @@ class Connections extends Controller
'recent_label' => t('Recent activity'),
'recentlink' => z_root() . '/stream/?cid=' . intval($rr['abook_id']),
'oneway' => $oneway,
'oneway_desc' => t('Is not following your posts'),
'group_desc' => t('Is only following group posts'),
'allow_delete' => ($rr['abook_pending'] || get_pconfig(local_channel(), 'system', 'connections_quick_delete')),
];
}

View file

@ -40,7 +40,11 @@
{{/if}}
<!--/a -->
{{if $contact.oneway}}
<i class="fa fa-fw fa-minus-circle oneway-overlay text-danger"></i>
{{if $contact.channel_type == 1}}
<i class="fa fa-fw fa-plus-circle oneway-overlay text-danger" title="{{$contact.group_desc}}"></i>
{{else}}
<i class="fa fa-fw fa-minus-circle oneway-overlay text-danger" title="{{$contact.oneway_desc}}"></i>
{{/if}}
{{/if}}
</div>
<div class="contact-info">