diff options
| author | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2014-03-11 18:29:49 +0530 |
|---|---|---|
| committer | Turkesh Patel (Open ERP) <tpa@tinyerp.com> | 2014-03-11 18:29:49 +0530 |
| commit | 41876d0379fb8d68fcdd4e4d4e22406df9dabeba (patch) | |
| tree | f330687d4d59c7bb988c19d75a6cd61dc2af2976 /addons/website_forum/views/website_forum.xml | |
| parent | 777a5a3c8faf6ad447e13793c2e3ca1ad18fd5dd (diff) | |
[IMP] remove activity object and use mail.message
bzr revid: tpa@tinyerp.com-20140311125949-50uxmckmcal11hdf
Diffstat (limited to 'addons/website_forum/views/website_forum.xml')
| -rw-r--r-- | addons/website_forum/views/website_forum.xml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index 8c2ef220c66..0557b078759 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -605,15 +605,16 @@ <template id="user_activity"> <ul class="media-list"> <li t-foreach="activities" t-as="activity" class="media"> - <small t-esc="activity.create_date" class="pull-left"/> - <span t-field="activity.type" class="label label-info"/> - <a t-esc="activity.name" t-if="not activity.post_id.parent_id" - t-attf-href="/forum/#{ slug(forum) }/question/#{ activity.post_id.id }"/> - <t t-if="activity.post_id.parent_id"> - <a t-esc="activity.post_id.parent_id.name" - t-attf-href="/forum/#{ slug(forum) }/question/#{ activity.post_id.parent_id.id }"/> + <t t-set="post" t-value="posts.get(activity.res_id)"/> + <small t-esc="activity.date" class="pull-left"/> + <span t-field="activity.body" class="label label-info pull-left"/> + <a t-esc="post.name" t-if="not post.parent_id" + t-attf-href="/forum/#{ slug(forum) }/question/#{ activity.res_id }"/> + <t t-if="post.parent_id"> + <a t-esc="post.parent_id.name" + t-attf-href="/forum/#{ slug(forum) }/question/#{ post.parent_id.id }"/> <span class="glyphicon glyphicon-play"/> - <t t-esc="activity.post_id.content[0:100]"/> + <t t-esc="post.content[0:100]"/> <strong> ... </strong> </t> </li> |
