subdue archived connections in mod/connections

This commit is contained in:
friendica 2014-04-06 22:21:51 -07:00
parent 68296bb857
commit 7d429b2894
3 changed files with 6 additions and 2 deletions

View File

@ -373,7 +373,7 @@ function connections_content(&$a) {
'thumb' => $rr['xchan_photo_m'],
'name' => $rr['xchan_name'],
'username' => $rr['xchan_name'],
'sparkle' => $sparkle,
'classes' => (($rr['abook_flags'] & ABOOK_FLAG_ARCHIVED) ? 'archived' : ''),
'link' => z_root() . '/connedit/' . $rr['abook_id'],
'url' => chanlink_url($rr['xchan_url']),
'network' => network_to_name($rr['network']),

View File

@ -1651,6 +1651,10 @@ header {
.contact-block-content {
margin-top: 8px;
}
.contact-block-img.archived {
opacity: 0.3;
filter:alpha(opacity=30);
}
.profile-match-connect { margin-top: 5px; }

View File

@ -1,6 +1,6 @@
<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
<div class="contact-entry-photo-wrapper" >
<a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img class="contact-block-img" src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
<a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img class="contact-block-img {{if $contact.classes}}{{$contact.classes}}{{/if}}" src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
</div>
<div class="contact-entry-photo-end" ></div>
<a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >{{$contact.name}}</div></a>