render attachments

This commit is contained in:
lilia 2014-10-25 23:09:29 -07:00
parent b69db59ad4
commit 3334504eff
2 changed files with 12 additions and 5 deletions

View file

@ -57,11 +57,14 @@
<div class='sender'>{{ sender }}</div>
<img class='avatar' src='{{ contact_avatar }}'>
<div class='bubble bubble_context {{ bubble_class }}'>
<ul class='volley'>
<li class='message'>
{{ message }}
</li>
</ul>
<ul class='volley'>
<li class='message'>
{{ message }}
</li>
</ul>
{{#attachments}}
<img src={{.}}>
{{/attachments}}
</div>
</script>
<script type='text/x-tmpl-mustache' id='contact'>

View file

@ -57,6 +57,10 @@ li.entry.outgoing .avatar {
display: none;
}
li.entry img {
max-width: 100%;
}
.attachments img {
width: 30px;
height: 30px;