mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-27 15:17:44 -06:00
[IMP] attachment_preview: black, isort, prettier
This commit is contained in:
@@ -1,19 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates>
|
||||
<t t-extend="mail.Attachment">
|
||||
<t t-jquery=".o_attachment_download" t-operation="after">
|
||||
<span t-if="!attachment.callback and attachment.url"
|
||||
class="fa fa-search ml4 o_attachment_preview"
|
||||
t-att-data-id="attachment.id"
|
||||
t-att-data-url="attachment.url"
|
||||
t-attf-title="Preview #{attachment.name} in side panel"/>
|
||||
<span
|
||||
t-if="!attachment.callback and attachment.url"
|
||||
class="fa fa-search ml4 o_attachment_preview"
|
||||
t-att-data-id="attachment.id"
|
||||
t-att-data-url="attachment.url"
|
||||
t-attf-title="Preview #{attachment.name} in side panel"
|
||||
/>
|
||||
|
||||
<span t-if="!attachment.callback and attachment.url"
|
||||
class="fa fa-external-link ml4 o_attachment_preview o_attachment_preview_new_tab"
|
||||
data-target="new"
|
||||
t-att-data-id="attachment.id"
|
||||
t-att-data-url="attachment.url"
|
||||
t-attf-title="Open preview #{attachment.name} in a new tab"/>
|
||||
<span
|
||||
t-if="!attachment.callback and attachment.url"
|
||||
class="fa fa-external-link ml4 o_attachment_preview o_attachment_preview_new_tab"
|
||||
data-target="new"
|
||||
t-att-data-id="attachment.id"
|
||||
t-att-data-url="attachment.url"
|
||||
t-attf-title="Open preview #{attachment.name} in a new tab"
|
||||
/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
@@ -21,15 +25,25 @@
|
||||
<div class="attachment_preview_widget d-none">
|
||||
<div class="attachment_preview_buttons">
|
||||
<div class="button-group pull-left">
|
||||
<button class="btn btn-sm btn-secondary attachment_preview_previous"><i class="fa fa-chevron-left"/></button>
|
||||
<button class="btn btn-sm btn-secondary disabled attachment_preview_current">1 / 5</button>
|
||||
<button class="btn btn-sm btn-secondary attachment_preview_next"><i class="fa fa-chevron-right"/></button>
|
||||
<button
|
||||
class="btn btn-sm btn-secondary attachment_preview_previous"
|
||||
><i class="fa fa-chevron-left" /></button>
|
||||
<button
|
||||
class="btn btn-sm btn-secondary disabled attachment_preview_current"
|
||||
>1 / 5</button>
|
||||
<button class="btn btn-sm btn-secondary attachment_preview_next"><i
|
||||
class="fa fa-chevron-right"
|
||||
/></button>
|
||||
</div>
|
||||
<button class="btn btn-sm btn-secondary pull-left ml8 attachment_preview_popout"><i class="fa fa-external-link"/></button>
|
||||
<button
|
||||
class="btn btn-sm btn-secondary pull-left ml8 attachment_preview_popout"
|
||||
><i class="fa fa-external-link" /></button>
|
||||
|
||||
<button class="btn btn-sm btn-secondary pull-right attachment_preview_close"><i class="fa fa-times"/></button>
|
||||
<button
|
||||
class="btn btn-sm btn-secondary pull-right attachment_preview_close"
|
||||
><i class="fa fa-times" /></button>
|
||||
</div>
|
||||
<iframe class="attachment_preview_iframe"></iframe>
|
||||
<iframe class="attachment_preview_iframe" />
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user