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:
parent
ada8f77930
commit
e26b9bfbc7
9 changed files with 120 additions and 11 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue