border options for avatars
This commit is contained in:
parent
2798a05e8e
commit
b27b4bef44
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue