1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/social_twitter/views/social_twitter_templates.xml
2024-12-10 09:04:09 +07:00

39 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="twitter_preview" t-name="Twitter Preview">
<div class="o_social_preview o_social_twitter_preview bg-white p-3 border rounded overflow-hidden">
<div class="w-100">
<div class="w-75 d-flex">
<span class="o_social_preview_icon_wrapper overflow-hidden me-2">
<i class="fa fa-twitter fa-2x"/>
</span>
<div class="o_social_preview_header">
<b class="text-900">Twitter Account</b>
<span class="text-600">@twitteraccount &#183;
<a t-if="live_post_link" t-attf-href="#{live_post_link}" target="blank">11m</a>
<t t-else="">11m</t>
</span>
</div>
</div>
<div class="d-table w-75">
<span t-esc="message[:limit]" class="o_social_preview_message"/>
<span t-if="is_twitter_post_limit_exceed" t-esc="message[limit:]" class="o_social_preview_message o_social_twitter_message_exceeding"/>
</div>
<div class="o_social_stream_post_image d-flex rounded overflow-hidden w-75">
<t t-foreach="image_urls" t-as="image_url">
<a t-if="image_url_index == 1 and len(image_urls) > 2" class="o_social_stream_post_image_more position-relative d-flex ms-1 mt-2">
<img t-att-src="image_url" alt="Post Image" />
<div class="o_social_stream_post_image_more_overlay d-flex align-items-center h-100 w-100 text-white justify-content-center position-absolute h1 m-0" style="user-select: none;">
+<t t-esc="len(image_urls) - 2"/>
</div>
</a>
<img t-elif="image_url_index &lt; 2" class="mt-2" t-att-src="image_url" alt="Post Image" />
</t>
</div>
</div>
</div>
</template>
</data>
</odoo>