![JC Brand](/assets/img/avatar_default.png)
Translations called at the top of template files don't apply, since the trnaslations aren't yet fetched at that point.
20 lines
771 B
JavaScript
20 lines
771 B
JavaScript
import { html } from "lit-html";
|
|
import { __ } from '@converse/headless/i18n';
|
|
import { modal_close_button, modal_header_close_button } from "./buttons"
|
|
|
|
|
|
export default (o) => html`
|
|
<div class="modal-dialog fit-content" role="document">
|
|
<div class="modal-content fit-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title" id="message-versions-modal-label">${__('Image: ')}<a target="_blank" rel="noopener" href="${o.src}">${o.src}</a></h4>
|
|
${modal_header_close_button}
|
|
</div>
|
|
<div class="modal-body fit-content">
|
|
<img class="chat-image" src="${o.src}"/>
|
|
</div>
|
|
<div class="modal-footer">${modal_close_button}</div>
|
|
</div>
|
|
</div>
|
|
`;
|