Add same code to viewconnections, but with slightly different descriptive text

This commit is contained in:
Mike Macgirvin 2024-06-17 13:17:19 +10:00
parent c006594d84
commit 06b35d8d00
2 changed files with 10 additions and 3 deletions

View file

@ -69,11 +69,14 @@ class Viewconnections extends Controller
'thumb' => $rr['xchan_photo_m'],
'name' => substr($rr['xchan_name'], 0, 20),
'username' => $rr['xchan_addr'],
'channel_type' => $rr['xchan_type'],
'link' => $url,
'sparkle' => '',
'itemurl' => $rr['url'],
'network' => '',
'oneway' => $oneway
'oneway' => $oneway,
'oneway_desc' => t('Is not following back'),
'group_desc' => t('Is only following group posts')
];
}
}

View file

@ -1,8 +1,12 @@
<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
<div class="contact-entry-photo-wrapper" >
<a href="{{$contact.link}}" title="{{$contact.img_hover}}" ><img class="contact-block-img" src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
{{if $contact.oneway}}
<i class="fa fa-fw fa-minus-circle oneway-overlay text-danger"></i>
{{if $contact.oneway}}
{{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-entry-photo-end" ></div>