Fixes #198 Squished avatars

Refactor all avatar views to use a shared partial, then change it to a
background image. Requires allowing unsafe-inline styles in the CSP.
This commit is contained in:
lilia 2015-03-23 14:01:18 -07:00
parent 6509561795
commit 20baa795ad
10 changed files with 48 additions and 42 deletions

View file

@ -41,7 +41,7 @@
timestamp: moment(this.model.get('received_at')).fromNow(),
sender: (contact && contact.getTitle()) || '',
avatar_url: (contact && contact.getAvatarUrl())
})
}, this.render_partials())
);
twemoji.parse(this.el, { base: '/images/twemoji/', size: 16 });