border options for avatars

This commit is contained in:
Kyle Spearrin 2017-04-06 00:00:04 -04:00
parent 2798a05e8e
commit b27b4bef44
2 changed files with 8 additions and 2 deletions

View File

@ -88,7 +88,9 @@ angular
'Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif',
round: attrs.round || 'true',
dynamic: attrs.dynamic || 'true',
class: attrs.avclass || ''
class: attrs.avclass || '',
border: attrs.avborder || 'false',
borderStyle: attrs.borderStyle || '3px solid white'
};
if (params.dynamic === 'true') {
@ -127,6 +129,10 @@ angular
img.css('border-radius', '50%');
}
if (params.border === 'true') {
img.css('border', params.borderStyle);
}
if (params.class) {
img.addClass(params.class);
}

View File

@ -23,7 +23,7 @@
<letter-avatar data="{{user.name || user.email}}"></letter-avatar>
</td>
<td>
<a href="javascript:void(0)" ng-click="edit(user.id)">{{user.email}}</a>
{{user.email}}
<div ng-if="user.name"><small class="text-muted">{{user.name}}</small></div>
</td>
<td style="width: 40px;" align="center">