use icons for identification

This commit is contained in:
friendica 2014-04-11 23:54:11 -07:00
parent 47096df97e
commit 2212ddb913
2 changed files with 8 additions and 3 deletions

View File

@ -210,11 +210,11 @@ function acl_init(&$a){
$contacts[] = array(
"type" => "c",
"photo" => $g['micro'],
"name" => $g['name'] . ' ' . t('plus connections'),
"name" => $g['name'] . '+',
"id" => $g['id'] . '+',
"xid" => $g['hash'],
"link" => $g['nick'],
"nick" => substr($g['nick'],0,strpos($g['nick'],'@')) . '+',
"nick" => substr($g['nick'],0,strpos($g['nick'],'@')),
"self" => (($g['abook_flags'] & ABOOK_FLAG_SELF) ? 'abook-self' : ''),
"taggable" => 'taggable'
);

View File

@ -85,7 +85,12 @@ ACPopup.prototype._search = function(){
if (data.tot>0){
that.cont.show();
$(data.items).each(function(){
html = "<img src='{0}' height='16px' width='16px'>{1} ({2})".format(this.photo, this.name, this.nick)
if(this.taggable)
ihtml = '<i class="icon-group"></i>';
else
ihtml = '<i class="icon-user"></i>';
html = "<img src='{0}' height='16px' width='16px'>{1} {2} ({3})".format(this.photo, ihtml, this.name, this.nick)
that.add(this.taggable, html, this.nick.replace(' ','') + '+' + this.id + ' - ' + this.link);
});
} else {