flectra/addons/website_forum/views/ir_qweb.xml

42 lines
1.9 KiB
XML
Raw Normal View History

2018-01-16 11:34:37 +01:00
<flectra>
<data>
<template id="contact" inherit_id="base.contact" name="Forum Contact Widget">
<xpath expr="//div[@itemprop='address']" position="after">
<div>
<div t-if="'karma' in fields" class='css_editable_mode_hidden'>
<div t-if="options.get('UserBio')">
<span t-field="object.company_name" class="o_forum_tooltip_line"/><br/>
<a t-att-href="object.website" t-if="object.website">
<span t-field="object.website" class="o_forum_tooltip_line"/>
</a>
</div>
<b><t t-esc="object.karma"/></b>
<div t-if="options.get('badges')" style="display: inline-block">
<t t-raw="separator"/>
<b>|</b>
<span class="fa fa-circle badge-gold"/>
<t t-esc="object.gold_badge"/>
<span class="fa fa-circle badge-silver"/>
<t t-esc="object.silver_badge"/>
<span class="fa fa-circle badge-bronze"/>
<t t-esc="object.bronze_badge"/>
</div>
<t t-raw="0"/>
<div t-if="options.get('UserBio')">
<div class="o_forum_tooltip_line" t-if="object.partner_id.country_id or object.partner_id.city">
<span t-field="object.partner_id.city"/><span t-if="object.partner_id.city and object.partner_id.country_id">, </span><span t-field="object.partner_id.country_id"/>
</div>
</div>
</div>
<span t-if="options.get('website_description') and 'partner_id' in fields">
<t t-if="object.partner_id.website_description">
<span t-field="object.partner_id.website_description"/>
</t>
</span>
</div>
</xpath>
</template>
</data>
2018-01-16 11:34:37 +01:00
</flectra>