Default avatar support

Fixes #264

Implement the equivalent of java's String.hashCode on the conversation model.
Change avatar template and attributes. Use css classes for colors.
This commit is contained in:
lilia 2015-06-18 17:05:00 -07:00
parent ada8f77930
commit e26b9bfbc7
9 changed files with 120 additions and 11 deletions

View file

@ -95,7 +95,9 @@
</div>
</script>
<script type='text/x-tmpl-mustache' id='avatar'>
<span class='avatar' style='background-image: url("{{ avatar_url }}");' ></span>
<span class='avatar color{{avatar.color}}' style='background-image: url("{{ avatar.url }}");'>
{{ avatar.content }}
</span>
</script>
<script type='text/x-tmpl-mustache' id='contact_pill'>
<span>{{ name }}</span><span class='remove'>x</span>