render attachments
This commit is contained in:
parent
b69db59ad4
commit
3334504eff
2 changed files with 12 additions and 5 deletions
13
index.html
13
index.html
|
@ -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'>
|
||||
|
|
|
@ -57,6 +57,10 @@ li.entry.outgoing .avatar {
|
|||
display: none;
|
||||
}
|
||||
|
||||
li.entry img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.attachments img {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
|
|
Loading…
Reference in a new issue