[FIX] website_sale: product template
- fixed link to comments - fixed Comments title + comment form not visible if no previous discussion on the prodcut bzr revid: tde@openerp.com-20140106171813-rolti0md6xaz1dxd
This commit is contained in:
parent
e4cdc02337
commit
b6517bd5bd
|
@ -382,17 +382,17 @@
|
|||
<template id="product_option_openchatter" inherit_option_id="website_sale.product" name="Discussion">
|
||||
<xpath expr="//div[@t-field='product.website_description']" position="after">
|
||||
<hr class="mb32"/>
|
||||
<section class="container" t-if="product.website_message_ids">
|
||||
<section class="container">
|
||||
<div class="row col-md-10 col-md-offset-1">
|
||||
<div class="text-muted">
|
||||
<h3 class="fa fa-comment-o">
|
||||
<a t-attf-href="#comments">
|
||||
<a id="comments">
|
||||
<t t-if="len(product.website_message_ids) <= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
|
||||
<t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<ul class="media-list" id="comments-list">
|
||||
<ul class="media-list" id="comments-list" t-if="product.website_message_ids">
|
||||
<li t-foreach="product.website_message_ids" t-as="message" class="media">
|
||||
<div class="media-body oe_msg">
|
||||
<img class="media-object pull-left oe_msg_avatar" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(message.author_id.id)" style="width: 50px; margin-right: 10px;"/>
|
||||
|
|
Loading…
Reference in New Issue