You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
1.8 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Blog Inherit -->
<template id="blog_dynamic_zen" inherit_id="website_blog.dynamic_filter_template_blog_post_horizontal" name="Blog">
<xpath expr="//figcaption" position="replace"/>
<xpath expr="//a" position="replace">
<div class="card-zen">
<div class="img_wrapper">
<a t-att-href="'/blog/%s/%s' % (p.blog_id.id, p.id)">
<t t-call="website.record_cover">
<t t-set="_record" t-value="p"/>
<t t-set="snippet_autofocus" t-value="True"/>
<t t-set="use_filters" t-value="True"/>
<t t-set="use_size" t-value="o_half_screen_height"/>
<t t-set="additional_classes" t-value="'o_half_screen_height'"/>
</t>
</a>
</div>
<div class="card-body-zen">
<h5 class="card-title-zen">
<a t-att-href="'/blog/%s/%s' % (p.blog_id.id, p.id)">
<div t-esc="p.name" class="card-title-zen tracking-in-expand-zen"/>
</a>
</h5>
<p class="card-text-group">
<span>
<a t-esc="p.author_name" class="card-text-zen"/>
</span>
<span>
<a t-esc="p.published_date"
class="card-text-zen"
t-options="{'widget': 'date', 'format': 'MMMM dd yyyy'}"/>
</span>
</p>
</div>
</div>
</xpath>
</template>
</odoo>