Files
odoo_source/addons/website_forum/views/ir_qweb.xml
T
Dharmraj Jhala bc50f53d65 [IMP] website_forum: extended biography
The biography of established users (with high karma) can be seen
with an expanded tooltip. This gives to users that participate
some kind of reward and gratitude of their work.
2015-08-11 16:12:33 +02:00

42 lines
2.0 KiB
XML

<openerp>
<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_id.name" class="o_forum_tooltip_line"/><br/>
<a t-att-href="object.company_id.website" t-if="object.company_id.website">
<span t-field="object.company_id.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>
</openerp>