2020-09-10 07:33:00 +02:00
|
|
|
import { __ } from '../i18n';
|
2020-05-15 14:33:31 +02:00
|
|
|
import { html } from "lit-html";
|
|
|
|
import { renderAvatar } from './../templates/directives/avatar';
|
|
|
|
|
|
|
|
|
2020-08-16 23:33:17 +02:00
|
|
|
export default (o) => {
|
|
|
|
const i18n_uploading = __('Uploading file:')
|
|
|
|
return html`
|
|
|
|
<div class="message chat-msg" data-isodate="${o.time}" data-msgid="${o.msgid}">
|
|
|
|
${ renderAvatar(this) }
|
|
|
|
<div class="chat-msg__content">
|
|
|
|
<span class="chat-msg__text">${i18n_uploading} <strong>${o.filename}</strong>, ${o.filesize}</span>
|
|
|
|
<progress value="${o.progress}"/>
|
|
|
|
</div>
|
2020-05-15 14:33:31 +02:00
|
|
|
</div>
|
2020-08-16 23:33:17 +02:00
|
|
|
`;
|
|
|
|
}
|